Debugging with GDB (September 2007)

212 Debugging with GDB
/[string] /[string] (with -xdb), search
regexp, forw regexp
Search source forward for [last]
string
?[string] ?[string] (with -xdb), rev regexp Search source backward for [last]
string
D "dir" D "dir" (with -xdb), dir
pathname
Add a directory search path for
source files
L L (with -xdb) Show current viewing location or
current point of execution
ld ld (with -xdb), show
directories
List source directory search path
(list all directories)
lf lf (with -xdb), info sources List all source files
lf [string] No equivalent List matching files
n fo or rev Repeat previous search
N fo or rev Repeat previous search in oppo-
site direction
v v (with -xdb), list Show one source window forward
from current
v location v location (with -xdb), list
location
View s ource at location in source
window
va address va address (with -xdb), disas
address
View address in disassembly win-
dow
va label va label (with -xdb), disas label View label in disassembly window
(label is a location)
va label + offset va label + offset (with -xdb),
disas label + offset
View label + offset in disassembly
window