Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
instruction address that is assigned to the debug registers.
However, the hardware breakpoint registers can take a limited
number of breakpoints. For example, on the DSU, only two
data breakpoints can be set at a time, and GDB will reject
this command if more than two are used. Delete or disable
unused hardware breakpoints before setting new ones (see
“Disabling breakpoints” (page 44)). See “Break conditions”
(page 45).
thbreak args Set a hardware-assisted breakpoint enabled only for one
stop. args are the same as for the hbreak command and
the breakpoint is set in the same way. However, like the
tbreak command, the breakpoint is automatically deleted
after the first time your program stops there. Also, like the
hbreak command, the breakpoint requires hardware support
and some target hardware may not have this support. See
“Disabling breakpoints” (page 44). See also “Break
conditions” (page 45).
rbreak regex Set breakpoints on all functions matching the regular
expression regex. This command sets an unconditional
breakpoint on all matches, printing a list of all breakpoints it
set. Once these breakpoints are set, they are treated just like
the breakpoints set with the break command. You can delete
them, disable them, or make them conditional the same way
as any other breakpoint.
The syntax of the regular expression is the standard one used
with tools like 'grep'. Note that this is different from the
syntax used by shells, so for instance foo* matches all
functions that include an fo followed by zero or more os.
There is an implicit .* leading and trailing the regular
expression you supply, so to match only functions that begin
with foo, use ^foo.
When debugging C++ programs, rbreak is useful for setting
breakpoints on overloaded functions that are not members of
any special classes.
info breakpoints [n], info
break [n], info watchpoints
[n]
Print a table of all breakpoints, watchpoints, and catchpoints
set and not deleted, with the following columns for each
breakpoint:
Breakpoint Numbers,
Type
Breakpoint, watchpoint, or
catchpoint.
Disposition Whether the breakpoint is
marked to be disabled or
deleted when hit.
Enabled or Disabled Enabled breakpoints are
marked with 'y'. 'n' marks
breakpoints that are not
enabled.
Address Where the breakpoint is in
your program, as a memory
address.
5.1 Breakpoints 41