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.
This commit is contained in:
Pedro Alves
2016-06-21 01:11:49 +01:00
parent 3c216924d6
commit c61db772bf
4 changed files with 17 additions and 2 deletions

View File

@@ -456,9 +456,9 @@ struct ui *main_ui = &main_ui_;
struct ui *current_ui = &main_ui_;
struct ui *ui_list = &main_ui_;
/* Cleanup that restores the current UI. */
/* See top.h. */
static void
void
restore_ui_cleanup (void *data)
{
current_ui = (struct ui *) data;