[prev] 49 [next]

Using GDB (cont)

Executing program under gdb control:

$ gdb myProg
(gdb) run < dataFile
... crashes, displaying line of code
(gdb) where
... stack trace
(gdb) list
... show code around current location
(gdb) print expr
... display value of expression
(gdb) help
... documentation
(gdb) quit