Skip to content

Instantly share code, notes, and snippets.

@xotonic
Last active January 30, 2019 14:54
Show Gist options
  • Save xotonic/c96c11615e0cfe6367940d3342866327 to your computer and use it in GitHub Desktop.
Save xotonic/c96c11615e0cfe6367940d3342866327 to your computer and use it in GitHub Desktop.
gdb cgdb

Disable "repeats n times" abbreviations

set print repeats 0

Run script on gdb startup:

gdb -x <script-name>

Run program with arguments

gdb --args program --with --arguments

Make next work only in current thread

set scheduler-locking on

Set breakpoint B after breakpoint A being hit

break one.cpp:A
commands
break two:cpp:B
run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment