aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-08-16 11:40:15 -0600
committerTom Tromey <tromey@adacore.com>2024-05-17 10:01:13 -0600
commitf2e4bd45d95747128aefc1362129081deeb99d08 (patch)
treeef30b87f521be5a44c806f0ddf882aceece322c5 /gdb/cli
parent5c51acfcce1e1ed997e3c2504c2a93a9ad16015e (diff)
downloadfsf-binutils-gdb-f2e4bd45d95747128aefc1362129081deeb99d08.zip
fsf-binutils-gdb-f2e4bd45d95747128aefc1362129081deeb99d08.tar.gz
fsf-binutils-gdb-f2e4bd45d95747128aefc1362129081deeb99d08.tar.bz2
Remove gdb_stdtargerr
This patch removes gdb_stdtargerr. There doesn't seem to be a need for this -- it is always the same as stdtarg, and (I believe) has been for many years. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-interp.c3
-rw-r--r--gdb/cli/cli-interp.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c
index 7cefc39..a488c30 100644
--- a/gdb/cli/cli-interp.c
+++ b/gdb/cli/cli-interp.c
@@ -273,7 +273,6 @@ cli_interp_base::set_logging (ui_file_up logfile, bool logging_redirect,
m_saved_output->err = gdb_stderr;
m_saved_output->log = gdb_stdlog;
m_saved_output->targ = gdb_stdtarg;
- m_saved_output->targerr = gdb_stdtargerr;
ui_file *logfile_p = logfile.get ();
m_saved_output->logfile_holder = std::move (logfile);
@@ -299,7 +298,6 @@ cli_interp_base::set_logging (ui_file_up logfile, bool logging_redirect,
gdb_stdlog = m_saved_output->stdlog_holder.get ();
gdb_stderr = new_stderr;
gdb_stdtarg = new_stderr;
- gdb_stdtargerr = new_stderr;
}
else
{
@@ -307,7 +305,6 @@ cli_interp_base::set_logging (ui_file_up logfile, bool logging_redirect,
gdb_stderr = m_saved_output->err;
gdb_stdlog = m_saved_output->log;
gdb_stdtarg = m_saved_output->targ;
- gdb_stdtargerr = m_saved_output->targerr;
m_saved_output.reset (nullptr);
}
diff --git a/gdb/cli/cli-interp.h b/gdb/cli/cli-interp.h
index 137eb46..03b592f 100644
--- a/gdb/cli/cli-interp.h
+++ b/gdb/cli/cli-interp.h
@@ -50,7 +50,6 @@ private:
ui_file *err;
ui_file *log;
ui_file *targ;
- ui_file *targerr;
/* When redirecting, some or all of these may be non-null
depending on the logging mode. */
ui_file_up stdout_holder;