Debugging with GDB (February 2008)

Table Of Contents
Chapter 16: XDB to WDB Transition Guide 225
Dpx
16.2.5 Global breakpoint commands
The following table lists the XDB and equivalent WDB commands for setting global
breakpoints:
XDB Command WDB Equivalent Meaning
abc cmds No exact equivalent, but display
expr is equivalent to abc print
expr
Set or delete cmds to execute at
every stop
dbc undisplay Stop displaying values at each
stop
16.2.6 Assertion control commands
GDB does not provide the ability to trace by instruction. Watchpoints, however, provide
similar functionality to xdb assertions.
For example, watchpoints can be:
Enabled (corresponds to aa)
Disabled (corresponds to da)
Listed (corresponds to info watch)
Added (corresponds to x)
WDB does not have explicit equivalents for the following commands:
a
aa
da
la
sa
ta
x
16.2.7 Record and playback commands
Use the source command to read commands from a file. GDB does not provide a
recording capability like XDB’s, but you can use the set history save command to record
all GDB commands in the file ./.gdb_history (similar to the $HOME/.xdbhist file). The
history file is not saved until the end of your debugging session.
To change the name of the history file, use set history filename.
To stop recording, use set history save off.