This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Queries in MI [was Re: MI usage inside a user-defined commands]
> > 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