This is the mail archive of the gdb@sources.redhat.com 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: Queries in MI


 > > 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.
 > 
 > Is it possible that FE's would want to automate the response to a query?
 > If so, does it make sense to put the query in the MI protocol?
 > 
 > For instance, a FE could implement a way to allow users to set a
 > breakpoint in the source window by class name/function. Then, when the
 > FE tries to automate the command, GDB could respond with a query,
 > the FE could present the user with choices (in dialog) and then send the 
 > response back. 
 > 
 > With the current response, the FE has no way of doing this.

I'm not sure what you're suggesting, but Emacs will always want to allow CLI
input through the GUD buffer which, for example, will be forwarded to GDB as:

-interpreter-exec console "b asdf"

I guess the choices for the query could be presented as a dialog box but I
don't know how that changes things.

Perhap, if as Daiel suggests, after a query GDB will only accept the response
to that query, the old behaviour can be re-instated.

Nick


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