Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)

Table 15 Macro facility commands
MeaningHP WDB EquivalentXDB Command
Define a user-defined commanddef name [GDB prompts for
commands]
def name replacement-text
Toggle the macro substitution
mechanism
No equivalenttm
Remove the macro definition for namedef name [follow with empty
command list]
undef name
Remove all macro definitionsNo equivalentundef *
Signal control commands
The following table lists the XDB and equivalent HP WDB commands for signal control:
Table 16 Signal control commands
MeaningHP WDB EquivalentXDB Command
List signal handlinglz (with -xdb), info signalslz
Toggle stop flag for signal numberz number s (with -xdb), handle
numberstop, handle number
nostop
z number s
Toggle ignore flag for signal numberz number i (with -xdb), handle
numbernopass, handle number
pass
z number i
Toggle report flag for signal numberz number r (with -xdb), handle
number print, handle number
noprint
z number r
Do not print the new state of the signalz number Q (with -xdb), handle
number noprint
z number Q
Miscellaneous commands
Some of the additional XDB and the equivalent HP WDB commands are discussed below:
Table 17 Miscellaneous commands
MeaningHP WDB EquivalentXDB Command
Repeat previous commandReturnReturn
Repeat previous commandReturn~
Separate commands in command listNo equivalent (one command per line
in command list)
;
Invoke a shell! cmd line (with -xdb), she cmd
line
! cmd line
Execute command list (group
commands)
commands [number] ... end{cmd list}
Interrupt the programControl-CControl-C
A comment# [text]# [text]
Activate more (turn on pagination)am (with -xdb), set height numam
Set address printing formatNo equivalentf ["printf-style- fmt"]
Helphh
204 XDB to HP WDB Transition Guide