Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
Table 11 Auxillary breakpoint commands
MeaningHP WDB EquivalentXDB Command
Print any stringp "any string"any_string
Conditionally execute cmdsif expr cmds [else cmds] endif expr {cmds} [{cmds}]
Quiet breakpointsQ (with -xdb), silent (must be
first command in a commands list)
Q
16.2.2 Breakpoint creation commands
The GDB equivalent of the count and cmds arguments is to use the commandsbnum command
to set an ignore count and/or to specify commands to be executed for that breakpoint.
For C++ programs, you can use the regular-expression breakpoint command rbreak to set
breakpoints on all the member functions of a class or on overloaded functions outside a class.
The following table lists the XDB and equivalent HP WDB commands for creating breakpoints:
Table 12 Breakpoint creation commands
MeaningHP WDB EquivalentXDB Command
Set a breakpoint at the specified
location.
b locb loc
Set a breakpoint at the current line.bb
Set breakpoint at a code address.ba address (with -xdb), b
*address
ba address
Set breakpoint at procedure beginning.No equivalent (use b proc)bb [depth]
Set an instance breakpoint at the first
executable line of expr.proc.
b class::proc cond bnum
(this == expr)
bi expr.proc
Set an instance breakpoint at first
executable line. No equivalent of all
non-static member functions of the
instance of a class (no base classes).
No Equivalentbi -c expr
Set an instance breakpoint at first
executable line of all non- static member
functions of the instance's class (base
classes included).
No equivalentbi -C expr
Set a class breakpoint at first executable
line of all member functions of the
instance's class (no base classes).
rb ^class::*bpc -c class
Set a class breakpoint at first ex-
ecutableUse rb ^class::* for base
classes also line of all member functions
of the class (base classes included).
Use rb ^class::* for base classes
also
bpc -C class
Set breakpoints on overloaded functions
outside a class.
rb procbpo proc
Set breakpoints on overloaded functions
in a class.
b class::procbpo class::proc
Set trace breakpoint at procedure at
specified depth on program stack.
No equivalentbt [depth]
Set trace breakpoint at proc.b proc commands bnum finish
c end
bt proc
16.2 Overall breakpoint commands 209