Debugging with GDB (February 2008)

Table Of Contents
Chapter 16: XDB to WDB Transition Guide 217
16.1.4 Source directory mapping commands
Use the D or dir command to add new directories to be searched for source files. See
See Section 16.1.3 [XDB-fil], page 215.
GDB does not provide a source directory mapping capability and therefore does not
have any equivalent of the apm, dpm, and lpm commands.
16.1.5 Data Viewing and modification commands
There are many info commands in addition to those shown here. Use help info to get
a list.
The following table lists the XDB and equivalent WDB commands for viewing and
modifying the program data:
XDB Command WDB Equivalent Meaning
l l (with -xdb), info args followed
by info locals
List all parameters and locals of
current procedure
lc [string] lc [string] (with -xdb), info
common string
List all (or matching) commons
lg [string] lg [string] (with -xdb), info
variables [string]
List all (or matching) globals
ll [string] info functions [string], info
variables [string], maint print
msymbols file
List the contents of the linker
symbol table
lm show user List all string macros
lm string show user string List matching string macros
lo
[[class]::][string]
info func [[class]::][string] List all (or matching) overloaded
functions
lp info functions Show current scope, list program
blocks, list names (symbols)
lp
[[class]::]string
info func [[class]::]string info
addr [[class]::]string
List all (or matching) procedures
lr lr (with -xdb), info all-reg List all registers