This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Queries in MI [was Re: MI usage inside a user-defined commands]
On Thu, Jul 07, 2005 at 10:51:50AM +1200, Nick Roberts wrote:
> > > The user should be asked:
> > >
> > > Make breakpoint pending on future shared library load? (y or [n])
> >
> > Yes, that does seem like a bug - but how would you perform the query?
>
> On older versions of GDB (example slightly changed because -interpreter-exec
> and pending breakpoints didn't exist):
>
> (gdb)
> quit
> &"quit\n"
> ~"The program is running. Exit anyway? (y or n) "
> n
> &"Not confirmed.\n"
> ^error,msg="Not confirmed."
> (gdb)
>
> which worked as for CLI. However, presumably this operation is synchronous.
> If MI becomes properly asynchronous then I'm not sure how to do it. Perhaps
> the the frontend could prepend a token on the input, just as MI already uses
> tokens for output.
I don't know that the MI will ever become _that_ asynchronous - GDB is
single threaded, after all.
But, the above isn't particularly warmth-inducing either. Or
documented, AFAICT.
--
Daniel Jacobowitz
CodeSourcery, LLC