aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-09 21:29:57 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:44:25 -0600
commitad25e4234a3f370a693b9c392c5b54216aab4592 (patch)
tree355013a7c1f46e1b988455121d7c4ad43b08445f /gdb/value.c
parentd64097b17c88ae18781ecce59d1b265b41e9551a (diff)
downloadgdb-ad25e4234a3f370a693b9c392c5b54216aab4592.zip
gdb-ad25e4234a3f370a693b9c392c5b54216aab4592.tar.gz
gdb-ad25e4234a3f370a693b9c392c5b54216aab4592.tar.bz2
Constify show_convenience
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * value.c (show_convenience): Constify.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 1fd9cc9..d0871ef 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -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;