aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog41
1 files changed, 41 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 22b369d..ed1f53a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,46 @@
2016-06-21 Pedro Alves <palves@redhat.com>
+ * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
+ (read_command_lines): Use input_interactive_p instead of
+ input_from_terminal_p.
+ * defs.h (struct ui): Forward declare.
+ (input_from_terminal_p): Rename to ...
+ (input_interactive_p): ... this.
+ * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
+ to quit_command.
+ (command_handler): Adjust to per-UI stdin.
+ (handle_line_of_input): Adjust to per-UI stdin and use
+ input_interactive_p instead of ISATTY and input_from_terminal_p.
+ (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
+ (command_line_handler): Always pass true as "from_tty" parameter
+ of handle_line_of_input and execute_command.
+ (async_sigterm_handler): Pass 0 as from_tty argument to
+ quit_command.
+ * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
+ (gdb_has_a_terminal): Don't check interactive_mode here.
+ (_initialize_inflow): Don't install "set interactive-mode" here.
+ * main.c (captured_command_loop): Adjust to per-UI stdin.
+ * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
+ stdin.
+ * top.c (new_ui): Save the stdin stream and whether it's a tty.
+ (dont_repeat): Adjust to per-UI stdin.
+ (command_line_input): Adjust to per-UI stdin and to use
+ input_interactive_p.
+ (quit_force): Write history if any UI supports interactive input.
+ (interactive_mode, show_interactive_mode): Move here, from
+ inflow.c.
+ (input_from_terminal_p): Rename to ...
+ (input_interactive_p): ... this, and check the "interactive_mode"
+ global instead of calling gdb_has_a_terminal.
+ (_initialize_top): Install "set interactive-mode" here.
+ * top.h (struct ui) <stdin_stream, input_interactive_p>: New
+ fields.
+ * utils.c (quit): Pass 0 as from_tty argument to quit_force.
+ (defaulted_query): Adjust to per-UI stdin and to use
+ input_interactive_p.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
* event-top.c (stdin_event_handler): Don't quit gdb if it was a
secondary UI's input stream that closed. Instead, just delete the
UI.