thbreak args
rbreak regex
info breakpoints [n], info break [n], info watchpoints [n]
are used. Delete or disable unused hardware breakpoints before setting new ones (see “Disabling breakpoints” (page 58)). See “Break conditions” (page 59).
Set a
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.
Print a table of all breakpoints, watchpoints, and catchpoints set and not deleted, with the following columns for each breakpoint:
Breakpoint Numbers, | Breakpoint, |
Type | watchpoint, or |
| catchpoint. |
Disposition | Whether the |
| breakpoint is |
54 Stopping and Continuing