This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Constify maintenance_print_user_registers
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Sep 2017 14:54:31 -0000
- Subject: [binutils-gdb] Constify maintenance_print_user_registers
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4d4589ef76b975eead8da6bfa65db4a9dc85089a
commit 4d4589ef76b975eead8da6bfa65db4a9dc85089a
Author: Tom Tromey <tom@tromey.com>
Date: Sat Sep 9 21:24:08 2017 -0600
Constify maintenance_print_user_registers
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* user-regs.c (maintenance_print_user_registers): Constify.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/user-regs.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4dbe3ed7..f583297 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-09-27 Tom Tromey <tom@tromey.com>
+ * user-regs.c (maintenance_print_user_registers): Constify.
+
+2017-09-27 Tom Tromey <tom@tromey.com>
+
* cp-namespace.c (maintenance_cplus_namespace): Constify.
2017-09-27 Tom Tromey <tom@tromey.com>
diff --git a/gdb/user-regs.c b/gdb/user-regs.c
index 121c69f..a5388d1 100644
--- a/gdb/user-regs.c
+++ b/gdb/user-regs.c
@@ -222,7 +222,7 @@ value_of_user_reg (int regnum, struct frame_info *frame)
}
static void
-maintenance_print_user_registers (char *args, int from_tty)
+maintenance_print_user_registers (const char *args, int from_tty)
{
struct gdbarch *gdbarch = get_current_arch ();
struct gdb_user_regs *regs;