This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/RFC] new setting against auto-answer? (because "input not from terminal")
- From: Paul Hilfinger <hilfingr at EECS dot Berkeley dot EDU>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 24 Oct 2008 18:40:01 -0700
- Subject: Re: [RFA/RFC] new setting against auto-answer? (because "input not from terminal")
- Reply-to: Hilfinger at CS dot Berkeley dot EDU
> If you have been in that situation, and you use a MinGW debugger,
> then you probably know that there are a few issues with the "terminal".
> One of the issues that is causing us some trouble is the fact that
> GDB automatically assumes the default answer for its y/n queries.
> For instance:
>
> (top-gdb) start
> The program being debugged has been started already.
> Start it from the beginning? (y or n) [answered Y; input not from terminal]
> [...]
>
> I propose a new "set/show interactive-mode (auto|on|off)" command
> to allow the user to override what GDB detects. By default, GDB
> still probes stdin and determines from there what mode should be
> used. But if the user knows what he's doing, he can force it in
> situations where GDB's default behavior is less useful.
If the behavior of GDB on other OS's is OK, shouldn't this be a
configuration parameter of some sort, preferably set automatically by
configure?
Paul Hilfinger