[RFA] Use observers to report stop events.

Daniel Jacobowitz drow@false.org
Tue Jun 10 13:21:00 GMT 2008


On Tue, Jun 10, 2008 at 01:36:23PM +0400, Vladimir Prus wrote:
> If proceed throws, before calling normal_stop, we'll get back to event loop,
> and run cleanup. We won't call the observer. It's an issue if we've printed
> "*running" and thrown after after. However, it's the issue we have now, as
> well -- we print ^running even before calling proceed, and if something later
> throws, we'll never print *stopped. Possible solutions are:
> - Require that frontend refresh thread state on ^error
> - Emit *stopped if exception is thrown (this requires checking that the
> target is actually stopped, if exception is thrown).

Or just don't print *running until we're actually running.  For now
it's fine as you have it.  Thanks.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list