aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-interp.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-11-17 09:09:59 -0700
committerTom Tromey <tromey@adacore.com>2022-11-28 13:22:40 -0700
commit2b141965f2ddef8cf3e79d357768a98c8703a5df (patch)
tree717f4e830e5feda928ea4202711e3079a3ec4515 /gdb/cli/cli-interp.h
parent19622df10dd5a8d3567e79d0661770029e4fbcfe (diff)
downloadgdb-2b141965f2ddef8cf3e79d357768a98c8703a5df.zip
gdb-2b141965f2ddef8cf3e79d357768a98c8703a5df.tar.gz
gdb-2b141965f2ddef8cf3e79d357768a98c8703a5df.tar.bz2
Don't let tee_file own a stream
Right now, tee_file owns the second stream it writes to. This is done for the convenience of the users. In a subsequent patch, this will no longer be convenient, so this patch moves the responsibility for ownership to the users of tee_file.
Diffstat (limited to 'gdb/cli/cli-interp.h')
-rw-r--r--gdb/cli/cli-interp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/cli/cli-interp.h b/gdb/cli/cli-interp.h
index 3c233c0..fa007d7 100644
--- a/gdb/cli/cli-interp.h
+++ b/gdb/cli/cli-interp.h
@@ -41,6 +41,7 @@ private:
ui_file *log;
ui_file *targ;
ui_file *targerr;
+ ui_file_up tee_to_delete;
ui_file_up file_to_delete;
ui_file_up log_to_delete;
};