This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Use observers to report stop events.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: Joel Brobecker <brobecker at adacore dot com>, gdb-patches at sources dot redhat dot com
- Date: Tue, 10 Jun 2008 08:43:13 -0400
- Subject: Re: [RFA] Use observers to report stop events.
- References: <200804112145.58456.vladimir@codesourcery.com> <200805041225.54416.vladimir@codesourcery.com> <20080605154111.GA29085@caradoc.them.org> <200806101336.24223.vladimir@codesourcery.com>
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