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: RFC: MI output during program execution


On Tue, Aug 09, 2005 at 06:34:21PM -0400, Bob Rossi wrote:
> However, in the meantime, I think it's possible to query the state of
> GDB at any moment. So, if you allow the user to enter a command via
> -interpreter-exec console, you could then follow that command up with
> other MI commands to sync the state of GDB with the state of the FE.

But we haven't got all the relevant query commands, I think.  And I
haven't a clue what the full set would be.  Rather than adding them,
investing effort in getting the async approach going makes more sense
to me.

As Jim's pointed out, you can need this any time you hit a breakpoint,
if the user has set commands on it.  Keeping track of this in the FE is
going to be tricky.  Also, if you're presenting a real console window
and you have to do a half-dozen queries after every command to keep the
UI up to date, that's probably going to be visibly slow.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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