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 some commands in symtab.c


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

commit 510e5e562796a5d2bbd4c7208155bd8a3c03b50d
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Sep 12 21:32:30 2017 -0600

    Constify some commands in symtab.c
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* symtab.c (maintenance_print_symbol_cache)
    	(maintenance_flush_symbol_cache)
    	(maintenance_print_symbol_cache_statistics): Constify.

Diff:
---
 gdb/ChangeLog | 6 ++++++
 gdb/symtab.c  | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6a34769..9afbb77 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
+	* symtab.c (maintenance_print_symbol_cache)
+	(maintenance_flush_symbol_cache)
+	(maintenance_print_symbol_cache_statistics): Constify.
+
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
 	* inferior.c (detach_inferior_command, kill_inferior_command)
 	(inferior_command): Constify.
 
diff --git a/gdb/symtab.c b/gdb/symtab.c
index bf7ee64..2da37e8 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1500,7 +1500,7 @@ symbol_cache_dump (const struct symbol_cache *cache)
 /* The "mt print symbol-cache" command.  */
 
 static void
-maintenance_print_symbol_cache (char *args, int from_tty)
+maintenance_print_symbol_cache (const char *args, int from_tty)
 {
   struct program_space *pspace;
 
@@ -1527,7 +1527,7 @@ maintenance_print_symbol_cache (char *args, int from_tty)
 /* The "mt flush-symbol-cache" command.  */
 
 static void
-maintenance_flush_symbol_cache (char *args, int from_tty)
+maintenance_flush_symbol_cache (const char *args, int from_tty)
 {
   struct program_space *pspace;
 
@@ -1572,7 +1572,7 @@ symbol_cache_stats (struct symbol_cache *cache)
 /* The "mt print symbol-cache-statistics" command.  */
 
 static void
-maintenance_print_symbol_cache_statistics (char *args, int from_tty)
+maintenance_print_symbol_cache_statistics (const char *args, int from_tty)
 {
   struct program_space *pspace;


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