Skip to content

Instantly share code, notes, and snippets.

@cuiwm
Created June 8, 2017 08:30
Show Gist options
  • Save cuiwm/1719ec4e4ac613346361569b710c4530 to your computer and use it in GitHub Desktop.
Save cuiwm/1719ec4e4ac613346361569b710c4530 to your computer and use it in GitHub Desktop.
# 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