aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-12 21:31:41 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:45:07 -0600
commit4e00131263d4de2e8b7a1d0da7e27e423d94fb52 (patch)
tree486ca92a745633c3b2287e5719130bd1812a4cf3 /gdb
parent7776370010db4d85a89a0dfde391aa9170ac1bbe (diff)
downloadgdb-4e00131263d4de2e8b7a1d0da7e27e423d94fb52.zip
gdb-4e00131263d4de2e8b7a1d0da7e27e423d94fb52.tar.gz
gdb-4e00131263d4de2e8b7a1d0da7e27e423d94fb52.tar.bz2
Constify some commands in regcache.c
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/regcache.c12
2 files changed, 14 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 151d717..cece16a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
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)
(enable_disable_display_command, enable_display_command)
(disable_display_command): Constify.
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 96a4947..acec972 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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);
}