Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
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] stringlc [string] (with -xdb), info
common string
lc [string]
Search source backward for [last] stringlg [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-reglr
List matching registerslr string (with -xdb), info
reg string
lr [string]
List all (or matching) special variablesNo equivalentls [string]
Show memory map of all loaded
shared libraries
info sharedlibrarymm
Show memory map of matching loaded
shared libraries
No equivalentmm string
Print value using the specified formatp[/format expr [Note: The count
and size portions of formats are not
allowed in the p (print) command.
They are allowed in the x command
(examine memory).]
p expr[\format
Print address using specified for- matp/format &exprp expr?format
Print static members of classNo equivalentp class::
Inquire what language is usedshow languagep $lang
Print value of next/previous memory
location using format
Use x/format command to obtain
initial value, then use x with no
argument to obtain value of next
memory location. To obtain value of
previous memory location, use "x $_
- 1".
p {+ | -}[\format
Evaluate using the specified formatset expr, set var exprpq expr
Determine address using specified
format
No equivalentpq expr?format
206 XDB to HP WDB Transition Guide