-
-
Save dboyliao/4a7cc1502e3e4ac3f6a85d1acbd86f28 to your computer and use it in GitHub Desktop.
GDB runner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute an executable under gdb, printing a call stack if we get a crash. | |
gdb -return-child-result -quiet -batch \ | |
-ex "set env MALLOC_CHECK_=3" \ | |
-ex "set print thread-events off" \ | |
-ex run \ | |
-ex "thread apply all backtrace full" \ | |
-ex "quit" \ | |
$* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment