Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
The following table lists the XDB and equivalent HP WDB commands for viewing and
modifying the program data:
Table 6 Data viewing and modification commands
MeaningHP WDB EquivalentXDB Command
Move view location forward or
backward in source file number
lines
l (with -xdb), info args
followed by info locals
l
Search source forward for [last]
string
lc [string] (with -xdb),
info common string
lc [string]
Search source backward for [last]
string
lg [string] (with -xdb),
info variables [string]
lg [string]
Add a directory search path for
source files
info functions [string],
info variables [string],
maint print msymbols file
ll [string]
Show current viewing location or
current point of execution
show userlm
List source directory search path
(list all directories)
show user stringlm string
List all source filesinfo func
[[class]::][string]
lo [[class]::][string]
Show current scope, list program
blocks, list names (symbols)
info functionslp
List all (or matching) proceduresinfo func
[[class]::]string info
addr [[class]::]string
lp [[class]::]string
List all registerslr (with -xdb), info
all-reg
lr
List matching registerslr string (with -xdb),
info reg string
lr [string]
List all (or matching) special
variables
No equivalentls [string]
Show memory map of all loaded
shared libraries
info sharedlibrarymm
Show memory map of matching
loaded shared libraries
No equivalentmm string
260 XDB to HP WDB Transition Guide