Constify some commands in regcache.c
authorTom Tromey <tom@tromey.com>
Wed, 13 Sep 2017 03:31:41 +0000 (21:31 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:45:07 +0000 (08:45 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* regcache.c (regcache_print, maintenance_print_registers)
(maintenance_print_raw_registers)
(maintenance_print_cooked_registers)
(maintenance_print_register_groups)
(maintenance_print_remote_registers): Constify.

gdb/ChangeLog
gdb/regcache.c

index 151d717e729ca69409970f5491f59d34bea95508..cece16ab63478174bed95de47a9c679046f11a98 100644 (file)
@@ -1,3 +1,11 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * regcache.c (regcache_print, maintenance_print_registers)
+       (maintenance_print_raw_registers)
+       (maintenance_print_cooked_registers)
+       (maintenance_print_register_groups)
+       (maintenance_print_remote_registers): Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * printcmd.c (map_display_numbers, undisplay_command)
index 96a494719fd529a305d4f54394cd4a027bb0ed24..acec972a6c668e58fddb9411eb22ee9701f610b4 100644 (file)
@@ -1593,7 +1593,7 @@ regcache::dump (ui_file *file, enum regcache_dump_what what_to_dump)
 }
 
 static void
-regcache_print (char *args, enum regcache_dump_what what_to_dump)
+regcache_print (const char *args, enum regcache_dump_what what_to_dump)
 {
   if (args == NULL)
     get_current_regcache ()->dump (gdb_stdout, what_to_dump);
@@ -1608,31 +1608,31 @@ regcache_print (char *args, enum regcache_dump_what what_to_dump)
 }
 
 static void
-maintenance_print_registers (char *args, int from_tty)
+maintenance_print_registers (const char *args, int from_tty)
 {
   regcache_print (args, regcache_dump_none);
 }
 
 static void
-maintenance_print_raw_registers (char *args, int from_tty)
+maintenance_print_raw_registers (const char *args, int from_tty)
 {
   regcache_print (args, regcache_dump_raw);
 }
 
 static void
-maintenance_print_cooked_registers (char *args, int from_tty)
+maintenance_print_cooked_registers (const char *args, int from_tty)
 {
   regcache_print (args, regcache_dump_cooked);
 }
 
 static void
-maintenance_print_register_groups (char *args, int from_tty)
+maintenance_print_register_groups (const char *args, int from_tty)
 {
   regcache_print (args, regcache_dump_groups);
 }
 
 static void
-maintenance_print_remote_registers (char *args, int from_tty)
+maintenance_print_remote_registers (const char *args, int from_tty)
 {
   regcache_print (args, regcache_dump_remote);
 }
This page took 0.036775 seconds and 4 git commands to generate.