Whole document tree
    

Whole document tree

Debugging with GDB: GDB/MI Symbol Query
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

19.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_filnd_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' `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' `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.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by root on January, 30 2002 using texi2html