This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH:MI] Event notification
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 10 Jun 2008 13:39:34 +1200
- Subject: Re: [PATCH:MI] Event notification
- References: <18439.56134.456709.118980@kahikatea.snap.net.nz> <20080501185728.GE22218@caradoc.them.org>
> ... I
> think that the frame changed observer will fire too often;
> select_frame is often used with cleanups to temporarily select another
> frame.
How about conditioning it so that it only fires when the target isn't running,
e.g., with the up, down, frame, -stack-select-frame etc commands?
Something like:
if (!target_can_async_p () && !target_executing)
observer_notify_frame_changed ();
which I realise isn't right because target_executing is for async mode.
In synchronous mode, is there a way to distinguish between the target
stopping normally and stopping while GDB executes?
--
Nick http://www.inet.net.nz/~nickrob