"continue" in breakpoint commands breaks line-by-line stepping

Juraj Oršulić <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAEPqvoxrAf9a2kWd92+AnB--VUVnQHrty9ovtgs1p4J5vtZyfA@mail.gmail.com>
Hi everyone, I have a quick question. I have added some breakpoint
commands for logging using the "commands" command. Since I don't want
to stop the execution in these points, I added a "continue", as
mentioned in https://sourceware.org/gdb/onlinedocs/gdb/Break-Commands.html.
However, this breaks stepping line-by-line in outer frames - if I
stumple upon one of these logging breakpoints, it issues a "continue",
and I lose control if I call "next" when I am in an outer frame. How
could I mitigate this? Perhaps by redefining "next" to set a temporary
breakpoint on the next line to ensure that I stop there? Should this
be the default behavior?

Thanks,
Juraj
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.