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

Table Of Contents
Table 5 File viewing commands (continued)
MeaningHP WDB EquivalentXDB Command
Search source backward for [last]
string
?[string] (with -xdb),
rev regexp
?[string]
Add a directory search path for
source files
D "dir" (with -xdb), dir
pathname
D "dir"
Show current viewing location or
current point of execution
L (with -xdb)L
List source directory search path
(list all directories)
ld (with -xdb), show
directories
ld
List all source fileslf (with -xdb), info
sources
lf
List matching filesNo equivalentlf [string]
Repeat previous searchfo or revn
Repeat previous search in opposite
direction
fo or revN
Show one source window forward
from current
v (with -xdb), listv
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 258).
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.
16.1 By-function lists of XDB commands and HP WDB equivalents 259