mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
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.
This commit is contained in:
parent
7776370010
commit
4e00131263
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user