Created
June 8, 2017 08:30
-
-
Save cuiwm/1719ec4e4ac613346361569b710c4530 to your computer and use it in GitHub Desktop.
gdb .gdbinit from https://blog.0x972.info/files/blog.0x972.info/.gdbinit
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
# no 'window' size, we can scroll | |
set height 0 | |
set width 0 | |
# allow pending breakpoints, we know what we're doing: | |
# > Function "foobar" not defined. Breakpoint 9 (foobar) pending. | |
# means that there is no "foobar" *currently loaded*, but maybe | |
# you know it will appear later | |
set breakpoint pending on | |
# we're doing python development, so print the full stack trace when it crashes | |
set python print-stack full | |
# GDB, please don't complain, I know what I'm doing! | |
# ... but beware, you may loose your session if you enter | |
# `start` in the middle of your debugging | |
set confirm off | |
# structure easier to read | |
set print pretty | |
# save history, <up-arrow> and ctrl-r can save a lot of time | |
set history filename ~/.gdb_history | |
set history save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment