| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
24.15 GDB/MI Symbol Query Commands
The -symbol-info-address Command
Synopsis
-symbol-info-address symbol |
Describe where symbol is stored.
No value for GDBN Command
The corresponding No value for GDBN command is ‘info address’.
Example
N.A.
The -symbol-info-file Command
Synopsis
-symbol-info-file |
Show the file for the symbol.
No value for GDBN Command
There's no equivalent No value for GDBN command. gdbtk has
‘gdb_find_file’.
Example
N.A.
The -symbol-info-function Command
Synopsis
-symbol-info-function |
Show which function the symbol lives in.
No value for GDBN Command
‘gdb_get_function’ in gdbtk.
Example
N.A.
The -symbol-info-line Command
Synopsis
-symbol-info-line |
Show the core addresses of the code for a source line.
No value for GDBN Command
The corresponding No value for GDBN command is ‘info line’.
gdbtk has the ‘gdb_get_line’ and ‘gdb_get_file’ commands.
Example
N.A.
The -symbol-info-symbol Command
Synopsis
-symbol-info-symbol addr |
Describe what symbol is at location addr.
No value for GDBN Command
The corresponding No value for GDBN command is ‘info symbol’.
Example
N.A.
The -symbol-list-functions Command
Synopsis
-symbol-list-functions |
List the functions in the executable.
No value for GDBN Command
‘info functions’ in No value for GDBN, ‘gdb_listfunc’ and
‘gdb_search’ in gdbtk.
Example
N.A.
The -symbol-list-lines Command
Synopsis
-symbol-list-lines filename |
Print the list of lines that contain code and their associated program addresses for the given source filename. The entries are sorted in ascending PC order.
No value for GDBN Command
There is no corresponding No value for GDBN command.
Example
(gdb)
-symbol-list-lines basics.c
^done,lines=[{pc="0x08048554",line="7"},{pc="0x0804855a",line="8"}]
(gdb)
|
The -symbol-list-types Command
Synopsis
-symbol-list-types |
List all the type names.
No value for GDBN Command
The corresponding commands are ‘info types’ in No value for GDBN,
‘gdb_search’ in gdbtk.
Example
N.A.
The -symbol-list-variables Command
Synopsis
-symbol-list-variables |
List all the global and static variable names.
No value for GDBN Command
‘info variables’ in No value for GDBN, ‘gdb_search’ in gdbtk.
Example
N.A.
The -symbol-locate Command
Synopsis
-symbol-locate |
No value for GDBN Command
‘gdb_loc’ in gdbtk.
Example
N.A.
The -symbol-type Command
Synopsis
-symbol-type variable |
Show type of variable.
No value for GDBN Command
The corresponding No value for GDBN command is ‘ptype’, gdbtk has
‘gdb_obj_variable’.
Example
N.A.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
