RecordReplay: Default answer for changing memory
Joel Brobecker
brobecker@adacore.com
Wed Apr 1 02:43:00 GMT 2009
> 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
More information about the Gdb
mailing list