Re: RFC: MI output during program execution

Daniel Jacobowitz
2005-08-10T00:41:43Z

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