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: Breakpoint commands


Joel Brobecker wrote:

>> It's probably not too difficult to implement "if you encounter any
>> other breakpoint with its own command list while executing the
>> original command list, the original command list is abandoned" policy.
>> I'll open a feature request unless somebody explains why this would be
>> a bad idea.
> 
> I think it would indeed be a big improvement.  I was hoping that the issue
> would go away with python support, but anyone who learnt about this behavior
> was surprised and found the argument to be very weak.

I'd like to mention this is not the only case where GDB abandons something
when hitting something else. E.g. if you have solib events enabled, and do
next and solib is loaded, the "next" operation is aborted, and you're stuck
in the middle of nowhere with no chance for a frontend to do anything.

It would be nice of infrun be rewritten to use a proper state machine, permitting
nesting.

- Volodya



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