Table 16-4 Data viewing and modification commands

XDB Command

WDB Equivalent

Meaning

l

lc [string]

lg [string]

ll[string]

lm

lm string

lo [[class]::][string]

lp

lp [[class]::]string

l (with -xdb),info args followed by info locals

lc [string] (with -xdb),info common string

lg [string] (with -xdb),info variables [string]

info functions [string], info variables [string], maint print msymbols file

show user

show user string

info func [[class]::][string]

info functions

info func

[[class]::]string info addr [[class]::]string

Move view location forward or backward in source file number lines

Search source forward for [last] string

Search source backward for [last] string

Add a directory search path for source files

Show current viewing location or current point of execution

List source directory search path (list all directories)

List all source files

Show current scope, list program blocks, list names (symbols)

List all (or matching) procedures

lr

lr [string]

ls [string]

mm

mmstring

p expr[\format

lr (with -xdb), info all-reg

lr string (with -xdb), info reg string

No equivalent

info sharedlibrary

No equivalent

p[/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).]

List all registers

List matching registers

List all (or matching) special variables

Show memory map of all loaded shared libraries

Show memory map of matching loaded shared libraries

Print value using the specified format

16.1 By-function lists of XDB commands and HP WDB equivalents 257

Page 257
Image 257
HP gnu source-level debugger 5992-4701 manual Data viewing and modification commands, Ll string Lm string