Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)
Example
(gdb)
-stack-list-locals 0
^done,locals=[name="A",name="B",name="C"]
(gdb)
-stack-list-locals 1
^done,locals=[{name="A",value="1"},{name="B",value="2"},
{name="C",value="3"}]
(gdb)
The -stack-select-frame command
Synopsis
-stack-select-frame framenum
Change the current frame. Select a different frame framenum on the stack.
GDB command
The corresponding GDB commands are 'frame', 'up', 'down', 'select-frame', 'up-silent',
and 'down-silent'.
Example
(gdb)
-stack-select-frame 2
^done
(gdb)
GDB/MI Symbol query commands
The -symbol-info-address command
Synopsis
-symbol-info-address symbol
Describe where symbol is stored.
GDB command
The corresponding GDB command is 'info address'.
Example
N.A.
The -symbol-info-file command
Synopsis
-symbol-info-file
Show the file for the symbol.
GDB command
There is no equivalent GDB command. gdbtk has 'gdb_find_file'.
Example
N.A.
264 The GDB/MI Interface