Constify show_convenience

gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

	* value.c (show_convenience): Constify.
This commit is contained in:
Tom Tromey 2017-09-09 21:29:57 -06:00
parent d64097b17c
commit ad25e4234a
2 changed files with 5 additions and 3 deletions

View 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.

View 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;