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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.