diff options
author | Pedro Alves <palves@redhat.com> | 2016-06-21 01:11:46 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-06-21 01:11:46 +0100 |
commit | 7c36c34e4c5c9438f17373a72773d741a17dc7b3 (patch) | |
tree | 1bb740078dd6809f3555c0dd0b3d918a357a93c2 /gdb/top.h | |
parent | 73ab01a07dfef77a9d845be2ef87754435eeffa1 (diff) | |
download | fsf-binutils-gdb-7c36c34e4c5c9438f17373a72773d741a17dc7b3.zip fsf-binutils-gdb-7c36c34e4c5c9438f17373a72773d741a17dc7b3.tar.gz fsf-binutils-gdb-7c36c34e4c5c9438f17373a72773d741a17dc7b3.tar.bz2 |
Always run async signal handlers in the main UI
Async signal handlers have no connection to whichever was the current
UI, and thus always run on the main one.
gdb/ChangeLog:
2016-06-21 Pedro Alves <palves@redhat.com>
* event-loop.c: Include top.h.
(invoke_async_signal_handlers): Switch to the main UI.
* event-top.c (main_ui_): Update comment.
(main_ui): New global.
* top.h (main_ui): Declare.
Diffstat (limited to 'gdb/top.h')
-rw-r--r-- | gdb/top.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -86,6 +86,11 @@ struct ui struct ui_file *m_gdb_stdlog; }; +/* The main UI. This is the UI that is bound to stdin/stdout/stderr. + It always exists and is created automatically when GDB starts + up. */ +extern struct ui *main_ui; + /* The current UI. */ extern struct ui *current_ui; |