Next: , Previous: GDB/MI Stack Manipulation, Up: GDB/MI



24.10 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 comamnd 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-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.