gdb.info: GDB/MI Symbol Query

Go forward to GDB/MI Target Manipulation
Go backward to GDB/MI Stack Manipulation
Go up to GDB/MI
Go to the top op 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's no equivalent GDB 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.

GDB 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.

GDB Command

The corresponding GDB 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.

GDB Command

The corresponding GDB command is `info symbol'.

Example

N.A.

The `-symbol-list-functions' Command

Synopsis

      -symbol-list-functions
   List the functions in the executable.

GDB Command

`info functions' in GDB, `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.

GDB Command

There is no corresponding GDB 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.

GDB Command

The corresponding commands are `info types' in GDB, `gdb_search' in
`gdbtk'.

Example

N.A.

The `-symbol-list-variables' Command

Synopsis

      -symbol-list-variables
   List all the global and static variable names.

GDB Command

`info variables' in GDB, `gdb_search' in `gdbtk'.

Example

N.A.

The `-symbol-locate' Command

Synopsis

      -symbol-locate

GDB Command

`gdb_loc' in `gdbtk'.

Example

N.A.

The `-symbol-type' Command

Synopsis

      -symbol-type VARIABLE
   Show type of VARIABLE.

GDB Command

The corresponding GDB command is `ptype', `gdbtk' has
`gdb_obj_variable'.

Example

N.A.