This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: RecordReplay: Default answer for changing memory
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Marc Khouzam <marc dot khouzam at ericsson dot com>, Paul Koning <Paul_Koning at dell dot com>, gdb at sourceware dot org
- Date: Wed, 1 Apr 2009 13:01:41 -0400
- Subject: Re: RecordReplay: Default answer for changing memory
- References: <6D19CA8D71C89C43A057926FE0D4ADAA072F8043@ecamlmw720.eamcs.ericsson.se> <18898.22572.431889.661694@gargle.gargle.HOWL> <6D19CA8D71C89C43A057926FE0D4ADAA072F8143@ecamlmw720.eamcs.ericsson.se> <20090401024323.GA8930@adacore.com>
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