Re: [RFA/RFC] new setting against auto-answer? (because "input not from terminal")

Joel Brobecker
2008-10-25T02:00:45Z

> > 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?

I don't think it would be a good idea to make it a configure parameter.
If you freeze the setting to interactive mode at configure time, then
the debugger is stuck in that mode, even when stdin is a real pipe:

cat commands | gdb

--
Joel