binutils-gdb/gdb/doc
Joel Brobecker 7bfc943420 move handing of "set interactive-mode" to gdb_has_a_terminal
The real purpose of this setting is really to override what the debugger
would otherwise guess from checking the stdin settings.  So it seems
more natural to see this setting being handled inside gdb_has_a_terminal
rather than input_is_terminal (which checks for other things, such as
whether the input is stdin, for instance).

This patch also adjust the command help and the associated section in
the GDB Manual to be a little clearer about that.

gdb/ChangeLog:

        * inflow.c: Include "gdbcmd.h".
        (interactive_mode): New static global, moved here from top.c.
        (show_interactive_mode): New function, moved here from top.c.
        use gdb_has_a_terminal instead of input_from_terminal_p to
        determine the current mode.
        (gdb_has_a_terminal): Add handling of the "iteractive-mode"
        setting.
        (_initialize_inflow): Add the "set/show interactive-mode"
        commands.  Moved here from top.c, after having adjusted slightly
        the help text.
        * top.c (interactive_mode, show_interactive_mode): Delete, moved
        to inflow.c.
        (input_from_terminal_p): Remove handling of "interactive-mode"
        setting, moved to infow.c.
        (init_main): Remove creation of the "set/show interactive-mode"
        commands, moved to inflow.c.

gdb/doc/ChangeLog:

        * gdb.texinfo (Other Misc Settings): Rework part of the
        documentation of the "set interactive mode" command.
2011-01-21 18:56:43 +00:00
..
a4rc.sed
agentexpr.texi Update the copyright year for most remaining files in GDB 2011-01-05 05:09:55 +00:00
all-cfg.texi Update the copyright year for most remaining files in GDB 2011-01-05 05:09:55 +00:00
annotate.texinfo Update the copyright year for most remaining files in GDB 2011-01-05 05:09:55 +00:00
ChangeLog move handing of "set interactive-mode" to gdb_has_a_terminal 2011-01-21 18:56:43 +00:00
fdl.texi 2010-06-21 Stan Shebs <stan@codesourcery.com> 2010-06-21 16:24:59 +00:00
gdb.texinfo move handing of "set interactive-mode" to gdb_has_a_terminal 2011-01-21 18:56:43 +00:00
gdbint.texinfo Update the copyright year for most remaining files in GDB 2011-01-05 05:09:55 +00:00
gpl.texi
lpsrc.sed
LRS
Makefile.in gdb/doc/ 2011-01-03 13:01:05 +00:00
observer.texi Update the copyright year for most remaining files in GDB 2011-01-05 05:09:55 +00:00
psrc.sed
refcard.tex Update the copyright year for most remaining files in GDB 2011-01-05 05:09:55 +00:00
stabs.texinfo Update the copyright year for most remaining files in GDB 2011-01-05 05:09:55 +00:00
stack_frame.eps
stack_frame.pdf
stack_frame.png
stack_frame.svg
stack_frame.txt