Constify show_convenience
authorTom Tromey <tom@tromey.com>
Sun, 10 Sep 2017 03:29:57 +0000 (21:29 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:25 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* value.c (show_convenience): Constify.

gdb/ChangeLog
gdb/value.c

index 6704ccdd2e13da7d81627bdaf4f622428546d5d2..b31d87b035c909b8e2b004932bf8c8ecb7439f9e 100644 (file)
@@ -1,3 +1,7 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * value.c (show_convenience): Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * gdbcore.h (core_file_command): Update.
index 1fd9cc9a7d01bcf08a9ec01e026c94d19a9e8643..d0871ef5bb2a291ad4042504e2b306acfc9a6059 100644 (file)
@@ -885,8 +885,6 @@ value_contents_eq (const struct value *val1, LONGEST offset1,
 
 static void show_values (char *, int);
 
-static void show_convenience (char *, int);
-
 
 /* The value-history records all the values printed
    by print commands during this session.  Each chunk
@@ -2661,7 +2659,7 @@ preserve_values (struct objfile *objfile)
 }
 
 static void
-show_convenience (char *ignore, int from_tty)
+show_convenience (const char *ignore, int from_tty)
 {
   struct gdbarch *gdbarch = get_current_arch ();
   struct internalvar *var;