aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-06-28 16:19:07 +0000
committerDaniel Jacobowitz <drow@false.org>2003-06-28 16:19:07 +0000
commit0fac0b4199c69f27906e7343e434dd0b98e5163e (patch)
tree15f8c0cc45939f9a12172feaf65f5bdc629ac6c8 /gdb/ui-out.h
parent1579bae1cd094ed9b986d2128997953600ca910d (diff)
downloadgdb-0fac0b4199c69f27906e7343e434dd0b98e5163e.zip
gdb-0fac0b4199c69f27906e7343e434dd0b98e5163e.tar.gz
gdb-0fac0b4199c69f27906e7343e434dd0b98e5163e.tar.bz2
./
* cli/cli-logging.c: New file. * cli-out.c (struct ui_out_data): Add original_stream. (cli_redirect): New function. (cli_ui_out_impl): Add cli_redirect. (cli_out_new): Initialize original_stream. * ui-out.c (default_ui_out_impl): Add NULL for redirect member. (uo_redirect, ui_out_redirect): New. * ui-out.h (struct ui_out_impl): Add redirect member. (redirect_ftype): New. (ui_out_redirect): Add prototype. * Makefile.in: Add rules for cli-logging.c. * NEWS: Mention "set logging". mi/ * mi-out.c (mi_ui_out_impl): Add NULL for redirect member. tui/ * tui-out.c (tui_ui_out_impl): Add NULL for redirect member. doc/ * gdb.texinfo (Logging output): New chapter.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r--gdb/ui-out.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h
index a52c345..3102e75 100644
--- a/gdb/ui-out.h
+++ b/gdb/ui-out.h
@@ -231,6 +231,8 @@ typedef void (message_ftype) (struct ui_out * uiout, int verbosity,
const char *format, va_list args);
typedef void (wrap_hint_ftype) (struct ui_out * uiout, char *identstring);
typedef void (flush_ftype) (struct ui_out * uiout);
+typedef int (redirect_ftype) (struct ui_out * uiout,
+ struct ui_file * outstream);
/* ui-out-impl */
@@ -254,6 +256,7 @@ struct ui_out_impl
message_ftype *message;
wrap_hint_ftype *wrap_hint;
flush_ftype *flush;
+ redirect_ftype *redirect;
int is_mi_like_p;
};
@@ -266,4 +269,8 @@ extern struct ui_out *ui_out_new (struct ui_out_impl *impl,
struct ui_out_data *data,
int flags);
+/* Redirect the ouptut of a ui_out object temporarily. */
+
+extern int ui_out_redirect (struct ui_out *uiout, struct ui_file *outstream);
+
#endif /* UI_OUT_H */