Finding out where you are in gdb |
|
where
This will show you the current line number. For example, a line
like this:
#0 foo () at foo.f:12
shows that the execution of our program is currently at a location
that corresponds to line 12 in the source file foo.f.
list
You can also specify a range of lines to be listed. For example, to
list lines 10 through 24 in the current program, you'd type:
list 10,24