GDB Status Commands
where -- stack trace
- find which function the program was executing when it crashed.
- stack may also have references to system error-handling functions.
up [N] -- move down the stack
- allows you to skip to scope of particular function in stack
list [LINE] --- show code
- displays five lines either side of current statement.
print EXPR -- display expression values
-
EXPR may use (current values of) variables
- special expression
a@1 shows all of the array a
|