How to set the same command for all the breakpoints in gdb?
Peng Yu <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CABrM6wnOHhPCwodnb1D1VNv4atfjya8EFiKkTC5WpGcP8gDmRA@mail.gmail.com> |
gdb manual says the following. But I want to set the same command for all breakpoints and I don't want to know the number of all the breakpoints. Is there a syntax to specify all the breakpoints? Thanks. *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, all breakpoint in that range are operated on.* -- Regards, Peng