summaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-21 13:28:16 -0600
committerTom Tromey <tom@tromey.com>2018-05-21 13:29:10 -0600
commit122b53ea6a99c8811fb9cb84869b949b1ac55b22 (patch)
tree786769bb4e207268dc60bc7f39d038f1b57e7747 /gdb/printcmd.c
parentbc18fbb575437dd10089ef4619e46c0b9a93097d (diff)
downloadbinutils-gdb-122b53ea6a99c8811fb9cb84869b949b1ac55b22.tar.gz
Remove output_command_const
I happened to notice that output_command_const still exists, but is not needed any more -- commands are always const-correct now. This patch removes this leftover. 2018-05-21 Tom Tromey <tom@tromey.com> * printcmd.c (output_command): Remove. (output_command_const): Rename to output_command. * valprint.h (output_command): Rename from output_command_const. * tracepoint.c (trace_dump_actions): Call output_command.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 4696373b2cc..0dfea347533 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1221,16 +1221,8 @@ call_command (const char *exp, int from_tty)
/* Implementation of the "output" command. */
-static void
-output_command (const char *exp, int from_tty)
-{
- output_command_const (exp, from_tty);
-}
-
-/* Like output_command, but takes a const string as argument. */
-
void
-output_command_const (const char *exp, int from_tty)
+output_command (const char *exp, int from_tty)
{
char format = 0;
struct value *val;