This is the mail archive of the gdb@sourceware.org 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: RecordReplay: Default answer for changing memory


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


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