diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/tui/tui.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1aa39b1..e51a137 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-11-04 Simon Marchi <simon.marchi@ericsson.com> + + * tui/tui.c (tui_enable): Pass stdout and stdin to newterm. + 2014-11-04 Pedro Alves <palves@redhat.com> * breakpoint.c (breakpoint_thread_match): Delete function. diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index cb85fb0..12ddab3 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -424,7 +424,7 @@ tui_enable (void) if (!ui_file_isatty (gdb_stdout)) error (_("Cannot enable the TUI when output is not a terminal")); - s = newterm (NULL, NULL, NULL); + s = newterm (NULL, stdout, stdin); if (s == NULL) { error (_("Cannot enable the TUI: error opening terminal [TERM=%s]"), |