Squashed 'external/SDL/' content from commit 716c767b7

git-subtree-dir: external/SDL
git-subtree-split: 716c767b7e7099fb0e2fda9db59227a7e1d1d8a4
This commit is contained in:
2026-05-13 17:47:57 +02:00
commit 411251c624
2245 changed files with 975842 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
# Script to run a headless gdb printing a stacktrace on a fatal signal
# Use it as: `gdb -batch -nx -x gdbcmds.txt --args $PROGRAM_AND_ARGS`
# Configure CMake with -DSDLTEST_GDB=ON to use with within CTest.
set pagination off
set confirm off
set verbose off
# Only stop on real crash signals
handle SIGSEGV stop print nopass
handle SIGABRT stop print nopass
handle SIGILL stop print nopass
handle SIGFPE stop print nopass
handle SIGBUS stop print nopass
# Ignore SIGPIPE and SIGTERM signals
# (SIGTERM is used by testthread)
handle SIGPIPE nostop noprint pass
handle SIGTERM nostop noprint pass
define hook-stop
if !$_isvoid($_siginfo)
printf "\n=== Crash detected (signal %d) ===\n", $_siginfo.si_signo
bt full
quit 1
end
end
run
# Normal exit path
if !$_isvoid($_exitcode)
quit $_exitcode
end
quit 0