Always process target events in the main UI
authorPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:49 +0000 (01:11 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:49 +0000 (01:11 +0100)
commitc61db772bf5dc21bf8e0db9acfa8796804f945ab
tree57bd72d1957279a46220c15035cbd05511bddeff
parent3c216924d6ae534ea6c2f6bdcc4b42238af52ab1
Always process target events in the main UI

This makes target events always be always processed with the main UI
as current UI.  This way, warnings, debug output, etc. are always
consistently sent to the main console.

gdb/ChangeLog:
2016-06-21  Pedro Alves  <palves@redhat.com>

* event-top.c (restore_ui_cleanup): Make extern.
* infrun.c (fetch_inferior_event): Always switch to the main UI.
* top.h (restore_ui_cleanup): Declare.
gdb/ChangeLog
gdb/event-top.c
gdb/infrun.c
gdb/top.h