RecordReplay: Default answer for changing memory
Daniel Jacobowitz
drow@false.org
Wed Apr 1 17:01:00 GMT 2009
On Tue, Mar 31, 2009 at 07:43:23PM -0700, Joel Brobecker wrote:
> > In defaulted_query() GDB bases itself on input_from_terminal_p() and
> > figures out that there is no terminal and answers the prompt
> > automatically. I'm not exactly sure how to prevent that from
> > happening...
>
> The IDE should probably create a pseudo-terminal. That's what GPS
> does, as well as what we do when we test GDB (using expect).
I don't think it's a good idea to treat the MI interface as a
terminal, in any circumstance. The MI protocol does not allow for
unformatted queries at any random point, which is where you'll get
them if you don't disable all queries. If there's a query that is
useful to the front end it should become explicit.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb
mailing list