Reputation: 10483
Is there a way to iterate over all my breakpoints in GDB and set a "command list" [ http://www.ofb.net/gnu/gdb/gdb_35.html ] ? I have about a 100 breakpoints and I want to run a set of commands for each of these breakpoints. Is anyone aware of how to do this? Thanks.
Upvotes: 2
Views: 1363
Reputation: 3424
cond <break-point#> <statement to execute>
are you looking something like above?
EDIT:
you can try breakpoint range. From above link:-
Some gdb commands accept a range of breakpoints on which to operate. A breakpoint range is either a single breakpoint number, like
5', or two such numbers, in increasing order, separated by a hyphen, like
5-7'. When a breakpoint range is given to a command
Upvotes: 2