This is the mail archive of the gdb-patches@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: [PATCH:MI] Event notification


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


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