This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 15/67] Constify show_convenience
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Wed, 20 Sep 2017 23:09:31 -0600
- Subject: [RFA 15/67] Constify show_convenience
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* value.c (show_convenience): Constify.
---
gdb/ChangeLog | 4 ++++
gdb/value.c | 4 +---
2 files changed, 5 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;
--
2.9.4