Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

26.14. gdb/mi Symbol Query Commands

26.14.1. The -symbol-info-addressCommand

26.14.1.1. Synopsis

 -symbol-info-address symbol

Describe where symbol is stored.

26.14.1.2. gdb Command

The corresponding gdb command is info address.

26.14.1.3. Example

N.A.

26.14.2. The -symbol-info-fileCommand

26.14.2.1. Synopsis

 -symbol-info-file

Show the file for the symbol.

26.14.2.2. gdb Command

There's no equivalent gdb command. gdbtk has gdb_find_file.

26.14.2.3. Example

N.A.

26.14.3. The -symbol-info-functionCommand

26.14.3.1. Synopsis

 -symbol-info-function

Show which function the symbol lives in.

26.14.3.2. gdb Command

gdb_get_function in gdbtk.

26.14.3.3. Example

N.A.

26.14.4. The -symbol-info-lineCommand

26.14.4.1. Synopsis

 -symbol-info-line

Show the core addresses of the code for a source line.

26.14.4.2. gdb Command

The corresponding gdb comamnd is info line. gdbtk has the gdb_get_line and gdb_get_file commands.

26.14.4.3. Example

N.A.

26.14.5. The -symbol-info-symbolCommand

26.14.5.1. Synopsis

 -symbol-info-symbol addr

Describe what symbol is at location addr.

26.14.5.2. gdb Command

The corresponding gdb command is info symbol.

26.14.5.3. Example

N.A.

26.14.6. The -symbol-list-functionsCommand

26.14.6.1. Synopsis

 -symbol-list-functions

List the functions in the executable.

26.14.6.2. gdb Command

info functions in gdb, gdb_listfunc and gdb_search in gdbtk.

26.14.6.3. Example

N.A.

26.14.7. The -symbol-list-linesCommand

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

26.14.7.2. gdb Command

There is no corresponding gdb command.

26.14.7.3. Example

(gdb)
-symbol-list-lines basics.c
^done,lines=[{pc="0x08048554",line="7"},{pc="0x0804855a",line="8"}]
(gdb)

26.14.8. The -symbol-list-typesCommand

26.14.8.1. Synopsis

 -symbol-list-types

List all the type names.

26.14.8.2. gdb Command

The corresponding commands are info types in gdb, gdb_search in gdbtk.

26.14.8.3. Example

N.A.

26.14.9. The -symbol-list-variablesCommand

26.14.9.1. Synopsis

 -symbol-list-variables

List all the global and static variable names.

26.14.9.2. gdb Command

info variables in gdb, gdb_search in gdbtk.

26.14.9.3. Example

N.A.

26.14.10. The -symbol-locateCommand

26.14.10.1. Synopsis

 -symbol-locate

26.14.10.2. gdb Command

gdb_loc in gdbtk.

26.14.10.3. Example

N.A.

26.14.11. The -symbol-typeCommand

26.14.11.1. Synopsis

 -symbol-type variable

Show type of variable.

26.14.11.2. gdb Command

The corresponding gdb command is ptype, gdbtk has gdb_obj_variable.

26.14.11.3. Example

N.A.

 
 
  Published under the terms of the GNU General Public License Design by Interspire