aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-04-12 16:49:31 +0100
committerPedro Alves <palves@redhat.com>2016-04-12 16:58:55 +0100
commitf8e3ef9dc4d803729a8f0e0cafb2c995b576c44e (patch)
tree826ed16ed3e188a48913e683540ba0f4768bc439 /gdb
parent481ac8c9bbbfc4b7506dfdb4a5b92b859d5c47d9 (diff)
downloadgdb-f8e3ef9dc4d803729a8f0e0cafb2c995b576c44e.zip
gdb-f8e3ef9dc4d803729a8f0e0cafb2c995b576c44e.tar.gz
gdb-f8e3ef9dc4d803729a8f0e0cafb2c995b576c44e.tar.bz2
Use target_terminal_ours_for_output in infcmd.c
We're only doing output here, so leave raw/cooked mode alone, as well as the SIGINT handler. No need to restore terminal settings, we'll set inferior modes on the following resume. gdb/ChangeLog: 2016-04-12 Pedro Alves <palves@redhat.com> * infcmd.c (post_create_inferior, prepare_one_step): Use target_terminal_ours_for_output instead of target_terminal_ours.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infcmd.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 857d5e5..0de7a6d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2016-04-12 Pedro Alves <palves@redhat.com>
+ * infcmd.c (post_create_inferior, prepare_one_step): Use
+ target_terminal_ours_for_output instead of target_terminal_ours.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
* exceptions.c (print_flush): Use target_terminal_ours_for_output
instead of target_terminal_ours, and restore target terminal with
a cleanup.
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 3a0265f..a80b4c6 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -406,7 +406,7 @@ post_create_inferior (struct target_ops *target, int from_tty)
{
/* Be sure we own the terminal in case write operations are performed. */
- target_terminal_ours ();
+ target_terminal_ours_for_output ();
/* If the target hasn't taken care of this already, do it now.
Targets which need to access registers during to_open,
@@ -1128,7 +1128,7 @@ prepare_one_step (struct step_command_fsm *sm)
&tp->control.step_range_end) == 0)
error (_("Cannot find bounds of current function"));
- target_terminal_ours ();
+ target_terminal_ours_for_output ();
printf_filtered (_("Single stepping until exit from function %s,"
"\nwhich has no line number information.\n"),
name);