Surviving inside of gdb - Advance notions and best use
GDB Bootcamp
Survival of the fittest
Getting around
To start a session : $> gdb my-super-awesome-program
To start a session with arguments : $> gdb --args my-super-awesome-program --temperature hot --voltage high
To run (the thing starts paused) : (gdb) run
To pause (when the bloody thing is running) : Ctrl-C (once!!!!)
Setting these damn breakpoints
(gdb) b vftranscode.cpp :2751
Inspecting after a crash
Get the stack trace
(gdb) backtrace
If you cannot get the backtrace (call stack), your program might have exited. To prevent that, retry debugging it, but before running type this :
(gdb) handle SIG33 noprint nostop
(gdb) run
Get the current source location
(gdb) l
(gdb) s
Recent Comments