This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Constify show_convenience


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ad25e4234a3f370a693b9c392c5b54216aab4592

commit ad25e4234a3f370a693b9c392c5b54216aab4592
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Sep 9 21:29:57 2017 -0600

    Constify show_convenience
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* value.c (show_convenience): Constify.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/value.c   | 4 +---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6704ccd..b31d87b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 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.
 	* corefile.c (core_file_command): Constify.
 
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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]