Created
April 26, 2017 19:37
-
-
Save jserv/79fbea8f75c750915c3ad1b6bd429cce 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