Queries in MI [was Re: MI usage inside a user-defined commands]
Nick Roberts
nickrob@snap.net.nz
Wed Jul 6 22:50:00 GMT 2005
> > 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.
Nick
More information about the Gdb
mailing list