beautypg.com

4 source directory mapping commands, 5 data viewing and modification commands, Source directory mapping commands – HP gnu source-level debugger 5992-4701 User Manual

Page 256: Data viewing and modification commands

background image

Table 16-3 File viewing commands (continued)

Meaning

WDB Equivalent

XDB Command

List source directory search path
(list all directories)

ld (with -xdb), show
directories

ld

List all source files

lf (with -xdb), info
sources

lf

List matching files

No equivalent

lf [string]

Repeat previous search

fo or rev

n

Repeat previous search in opposite
direction

fo or rev

N

Show one source window forward
from current

v (with -xdb), list

v

View source at location in
source window

v location (with -xdb),
list location

v location

View address in disassembly
window

va address (with -xdb),
disas address

va address

View label in disassembly
window (label is a location)

va label (with -xdb),
disas label

va label

View label + offset in
disassembly window

va label + offset (with
-xdb), disas label +
offset

va label + offset

16.1.4 Source directory mapping commands

Use the D or dir command to add new directories to be searched for source files. See

“File viewing commands” (page 255)

.

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:

256

XDB to WDB Transition Guide