Table 16-3 File viewing commands (continued)

XDB Command

WDB Equivalent

Meaning

ld

ld (with -xdb), show

List source directory search path

 

directories

(list all directories)

 

 

 

lf

lf (with -xdb), info

List all source files

 

sources

 

 

 

 

lf [string]

No equivalent

List matching files

 

 

 

n

fo or rev

Repeat previous search

 

 

 

N

fo or rev

Repeat previous search in opposite

 

 

direction

 

 

 

v

v (with -xdb), list

Show one source window forward

 

 

from current

 

 

 

v location

v location (with -xdb),

View source at location in

 

list location

source window

 

 

 

va address

va address (with -xdb),

View address in disassembly

 

disas address

window

 

 

 

va label

va label (with -xdb),

View label in disassembly

 

disas label

window (label is a location)

 

 

 

va label + offset

va label + offset (with

View label + offset in

 

-xdb), disas label +

disassembly window

 

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