This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to resume step/next/cont within a breakpoint command list ?
- From: Tom Tromey <tromey at redhat dot com>
- To: Philippe Waille <Philippe dot Waille at imag dot fr>
- Cc: gdb at sourceware dot org
- Date: Fri, 24 Apr 2009 14:02:12 -0600
- Subject: Re: How to resume step/next/cont within a breakpoint command list ?
- References: <20090424142515.GA9377@otto.imag.fr>
- Reply-to: tromey at redhat dot com
>>>>> "Philippe" == Philippe Waille <Philippe.Waille@imag.fr> writes:
Philippe> c) resume execution until
Philippe> + the end of the current instruction/line if the current breakpoint was
Philippe> reached while single stepping (step/next)
Philippe> + the next breakpoint is reached when the current breakpoint was
Philippe> reached during continous execution (run/continue).
[...]
Philippe> But I don't see how to express c) with existing gdb commands.
You may be able to do it by setting a convenience variable in hooks
attached to cont/step/next, and then checking the convenience variable
in the breakpoint commands.
FWIW, I think that this kind of thing will be much simpler to
implement once the Python "inferior control" functionality is written.
Tom