summaryrefslogtreecommitdiff
path: root/gdb/interps.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/interps.h')
-rw-r--r--gdb/interps.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/interps.h b/gdb/interps.h
index 5ec2b05d8b5..af8c27f0868 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -49,9 +49,9 @@ typedef struct gdb_exception (interp_exec_ftype) (void *data,
typedef void (interp_pre_command_loop_ftype) (struct interp *self);
typedef struct ui_out *(interp_ui_out_ftype) (struct interp *self);
-typedef int (interp_set_logging_ftype) (struct interp *self, int start_log,
- struct ui_file *out,
- struct ui_file *logfile);
+typedef void (interp_set_logging_ftype) (struct interp *self,
+ ui_file_up logfile,
+ bool logging_redirect);
typedef int (interp_supports_command_editing_ftype) (struct interp *self);
@@ -109,13 +109,13 @@ extern int current_interp_named_p (const char *name);
/* Call this function to give the current interpreter an opportunity
to do any special handling of streams when logging is enabled or
- disabled. START_LOG is 1 when logging is starting, 0 when it ends,
- and OUT is the stream for the log file; it will be NULL when
- logging is ending. LOGFILE is non-NULL if the output streams
+ disabled. START_LOG is true when logging is starting, false when
+ it ends. LOGFILE is the stream for the log file; it's NULL when
+ logging is ending. LOGGING_REDIRECT is false if the output streams
are to be tees, with the log file as one of the outputs. */
-extern int current_interp_set_logging (int start_log, struct ui_file *out,
- struct ui_file *logfile);
+extern void current_interp_set_logging (ui_file_up logfile,
+ bool logging_redirect);
/* Returns opaque data associated with the top-level interpreter. */
extern void *top_level_interpreter_data (void);