diff options
author | Tom Tromey <tromey@adacore.com> | 2022-11-28 14:01:35 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-11-30 07:12:32 -0700 |
commit | 35254615ab38c37cf934b28982691f458d4c9948 (patch) | |
tree | c9875d2ed46e7cd976e2f3e03acd43d51a0ceaed /gdb/cli/cli-interp.h | |
parent | aaa79cd62b873be672e3163eb267513c97ec4399 (diff) | |
download | gdb-35254615ab38c37cf934b28982691f458d4c9948.zip gdb-35254615ab38c37cf934b28982691f458d4c9948.tar.gz gdb-35254615ab38c37cf934b28982691f458d4c9948.tar.bz2 |
Rename fields of cli_interp_base::saved_output_files
This renames the fields of cli_interp_base::saved_output_files, as
requested by Simon. I tried to choose names that more obviously
reflect what the field is used for. I also added a couple of
comments.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/cli/cli-interp.h')
-rw-r--r-- | gdb/cli/cli-interp.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/cli/cli-interp.h b/gdb/cli/cli-interp.h index 978e7f2..ad2167e 100644 --- a/gdb/cli/cli-interp.h +++ b/gdb/cli/cli-interp.h @@ -36,15 +36,18 @@ public: private: struct saved_output_files { + /* Saved gdb_stdout, gdb_stderr, etc. */ ui_file *out; ui_file *err; ui_file *log; ui_file *targ; ui_file *targerr; - ui_file_up tee_to_delete; - ui_file_up stderr_to_delete; - ui_file_up file_to_delete; - ui_file_up log_to_delete; + /* When redirecting, some or all of these may be non-null + depending on the logging mode. */ + ui_file_up stdout_holder; + ui_file_up stderr_holder; + ui_file_up stdlog_holder; + ui_file_up logfile_holder; }; /* These hold the pushed copies of the gdb output files. If NULL |