Always run async signal handlers in the main UI
authorPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:46 +0000 (01:11 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:46 +0000 (01:11 +0100)
commit7c36c34e4c5c9438f17373a72773d741a17dc7b3
tree1bb740078dd6809f3555c0dd0b3d918a357a93c2
parent73ab01a07dfef77a9d845be2ef87754435eeffa1
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.
gdb/event-loop.c
gdb/event-top.c
gdb/top.h