gdb_printf (mi->event_channel,
"tsv-modified");
- mi_uiout->redirect (mi->event_channel);
+ ui_out_redirect_pop redir (mi_uiout, mi->event_channel);
mi_uiout->field_string ("name", tsv->name);
mi_uiout->field_string ("initial",
- plongest (tsv->initial_value));
+ plongest (tsv->initial_value));
if (tsv->value_known)
mi_uiout->field_string ("current", plongest (tsv->value));
- mi_uiout->redirect (NULL);
-
gdb_flush (mi->event_channel);
}
}
break if anything is output to mi_uiout prior to calling the
breakpoint_created notifications. So, we use
ui_out_redirect. */
- mi_uiout->redirect (mi->event_channel);
+ ui_out_redirect_pop redir (mi_uiout, mi->event_channel);
try
{
{
exception_print (gdb_stderr, ex);
}
-
- mi_uiout->redirect (NULL);
}
/* Emit notification about a created breakpoint. */
gdb_printf (mi->event_channel, "library-loaded");
- uiout->redirect (mi->event_channel);
+ ui_out_redirect_pop redir (uiout, mi->event_channel);
mi_output_solib_attribs (uiout, solib);
- uiout->redirect (NULL);
-
gdb_flush (mi->event_channel);
}
}
gdb_printf (mi->event_channel, "library-unloaded");
- uiout->redirect (mi->event_channel);
+ ui_out_redirect_pop redir (uiout, mi->event_channel);
uiout->field_string ("id", solib->so_original_name);
uiout->field_string ("target-name", solib->so_original_name);
uiout->field_fmt ("thread-group", "i%d", current_inferior ()->num);
}
- uiout->redirect (NULL);
-
gdb_flush (mi->event_channel);
}
}
gdb_printf (mi->event_channel, "cmd-param-changed");
- mi_uiout->redirect (mi->event_channel);
+ ui_out_redirect_pop redir (mi_uiout, mi->event_channel);
mi_uiout->field_string ("param", param);
mi_uiout->field_string ("value", value);
- mi_uiout->redirect (NULL);
-
gdb_flush (mi->event_channel);
}
}
gdb_printf (mi->event_channel, "memory-changed");
- mi_uiout->redirect (mi->event_channel);
+ ui_out_redirect_pop redir (mi_uiout, mi->event_channel);
mi_uiout->field_fmt ("thread-group", "i%d", inferior->num);
mi_uiout->field_core_addr ("addr", target_gdbarch (), memaddr);
mi_uiout->field_string ("type", "code");
}
- mi_uiout->redirect (NULL);
-
gdb_flush (mi->event_channel);
}
}
mi_uiout = top_level_interpreter ()->interp_ui_out ();
- mi_uiout->redirect (mi->event_channel);
- ui_out_redirect_pop redirect_popper (mi_uiout);
+ ui_out_redirect_pop redirect_popper (mi_uiout, mi->event_channel);
target_terminal::scoped_restore_terminal_state term_state;
target_terminal::ours_for_output ();