Remove output_command_const
authorTom Tromey <tom@tromey.com>
Mon, 21 May 2018 19:28:16 +0000 (13:28 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 21 May 2018 19:29:10 +0000 (13:29 -0600)
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.

gdb/ChangeLog
gdb/printcmd.c
gdb/tracepoint.c
gdb/valprint.h

index 10a054fe7487e3822ed51d0373a0384bcca80541..82e249f563961e65e9ca3f5eb5d5ac9ab0b7e1b9 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2018-05-21  Tom Tromey  <tom@tromey.com>
 
        * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
index 4696373b2cc71e5afc8599adeae31a7e12536a17..0dfea34753365118a50a4b5200d8f2de89a7f48f 100644 (file)
@@ -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;
index 9261fe2a27f8ab142d3dc4dac73217cd17682c4b..369f07581fdbd6d773dba28d2330c4d97a93869b 100644 (file)
@@ -2713,7 +2713,7 @@ trace_dump_actions (struct command_line *action,
                        }
 
                      printf_filtered ("%s = ", exp);
-                     output_command_const (exp, from_tty);
+                     output_command (exp, from_tty);
                      printf_filtered ("\n");
                    }
                  action_exp = next_comma;
index f005c31f87168d5c17e3c4cef9f6f7b829a397b0..1f62039be5f909185b5ba0f3937dc02aca8840ee 100644 (file)
@@ -210,7 +210,7 @@ extern void generic_printstr (struct ui_file *stream, struct type *type,
    arguments passed to all command implementations, except ARGS is
    const.  */
 
-extern void output_command_const (const char *args, int from_tty);
+extern void output_command (const char *args, int from_tty);
 
 extern int val_print_scalar_type_p (struct type *type);
 
This page took 0.039922 seconds and 4 git commands to generate.