This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to resume step/next/cont within a breakpoint command list ?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]