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


> 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).

Regarding how to prevent this, I posted a patch not too long ago
that proposed the addition of a new setting, off by default, that
would force the debugger to "interactive" mode (it's useful in
the case when running GDB from a "cygwin" window which does NOT
setup a real pseudo-terminal, but rather some pipes). I didn't
feel that there was real interest in this feature, so I figured
no one else was going to use it but me, and only on Windows, so
I droped it.

I really have to agree that Eclipse should be enhanced to allow you
to choose rather than force the default, if that's really the case.
But in the interim, the patch I suggested might be helpful.

http://www.sourceware.org/ml/gdb-patches/2008-10/msg00626.html

-- 
Joel


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