This is the mail archive of the gdb-patches@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: [RFA/RFC] new setting against auto-answer? (because "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?

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


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