This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/commit/doco] move handing of "set interactive-mode" to gdb_has_a_terminal
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 21 Jan 2011 13:57:46 -0500
- Subject: Re: [RFA/commit/doco] move handing of "set interactive-mode" to gdb_has_a_terminal
- References: <1295394141-14863-1-git-send-email-brobecker@adacore.com>
> 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.
Patch checked in with Eli's suggestions (thanks!).
--
Joel