aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-06-21 01:11:47 +0100
committerPedro Alves <palves@redhat.com>2016-06-21 01:11:47 +0100
commit694ec099d2fca9e7d47848e8a7fc40ea3aa47a32 (patch)
tree7818be8d17e00932989d674657bf65e0f5817098 /gdb/ChangeLog
parent41fd2b0f5d958fe3056da5c7af4032b1b99d726f (diff)
downloadfsf-binutils-gdb-694ec099d2fca9e7d47848e8a7fc40ea3aa47a32.zip
fsf-binutils-gdb-694ec099d2fca9e7d47848e8a7fc40ea3aa47a32.tar.gz
fsf-binutils-gdb-694ec099d2fca9e7d47848e8a7fc40ea3aa47a32.tar.bz2
Make out and error streams be per UI
stderr_fileopen () references stderr directly, which doesn't work when we have a separate UI with its own stderr-like stream. So this also adds a "errstream" to "struct ui", and plumbs stderr_fileopen to take a stream parameter. gdb/ChangeLog: 2016-06-21 Pedro Alves <palves@redhat.com> * event-top.c (gdb_setup_readline): Pass the UI's outstream and errstream to stdout_fileopen and stderr_fileopen. * exceptions.c: Include top.h. (print_flush): Open the current UI's outstream file descriptor, instead of hardcoding file descriptor 1. * main.c (captured_main): Save the main UI's out and error streams. Adjust stderr_fileopen call. * top.h (struct ui) <outstream, errstream>: New fields. * ui-file.c (stderr_fileopen): Add stream parameter. Use it instead of stderr. * ui-file.h (stderr_fileopen): Add stream parameter and update comment.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 680e6e5..3edb6dc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,20 @@
2016-06-21 Pedro Alves <palves@redhat.com>
+ * event-top.c (gdb_setup_readline): Pass the UI's outstream and
+ errstream to stdout_fileopen and stderr_fileopen.
+ * exceptions.c: Include top.h.
+ (print_flush): Open the current UI's outstream file descriptor,
+ instead of hardcoding file descriptor 1.
+ * main.c (captured_main): Save the main UI's out and error
+ streams. Adjust stderr_fileopen call.
+ * top.h (struct ui) <outstream, errstream>: New fields.
+ * ui-file.c (stderr_fileopen): Add stream parameter. Use it
+ instead of stderr.
+ * ui-file.h (stderr_fileopen): Add stream parameter and update
+ comment.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
* event-top.c (input_fd): Delete.
(stdin_event_handler): Switch to the UI whose input descriptor got
the event. Adjust to per-UI input_fd.