Constify some commands in symtab.c
authorTom Tromey <tom@tromey.com>
Wed, 13 Sep 2017 03:32:30 +0000 (21:32 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:45:09 +0000 (08:45 -0600)
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.

gdb/ChangeLog
gdb/symtab.c

index 6a3476946a8ab59647c4fa72090c542edaa60955..9afbb7763090f74c34d70e8aede15ce6030fc830 100644 (file)
@@ -1,3 +1,9 @@
+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)
index bf7ee646d4286d11201b787ae19339203bae5c65..2da37e869935f894216108d822eead065e5183d7 100644 (file)
@@ -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;