This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
"continue" in breakpoint commands breaks line-by-line stepping
- From: Juraj Oršulić <juraj dot orsulic at fer dot hr>
- To: <gdb at sourceware dot org>
- Date: Fri, 10 Mar 2017 09:24:45 +0100
- Subject: "continue" in breakpoint commands breaks line-by-line stepping
- Authentication-results: sourceware.org; auth=none
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