This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Constify maintenance_print_target_stack
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Sep 2017 14:55:03 -0000
- Subject: [binutils-gdb] Constify maintenance_print_target_stack
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d3cb6b99c5127911f94c782be8214e2093fbe82c
commit d3cb6b99c5127911f94c782be8214e2093fbe82c
Author: Tom Tromey <tom@tromey.com>
Date: Sat Sep 9 21:34:29 2017 -0600
Constify maintenance_print_target_stack
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* target.c (maintenance_print_target_stack): Constify.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/target.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 76831c1..2f3ca48 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-09-27 Tom Tromey <tom@tromey.com>
+ * target.c (maintenance_print_target_stack): Constify.
+
+2017-09-27 Tom Tromey <tom@tromey.com>
+
* interps.c (interpreter_exec_cmd): Constify.
2017-09-27 Tom Tromey <tom@tromey.com>
diff --git a/gdb/target.c b/gdb/target.c
index c26fba7..4f574f6 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3892,7 +3892,7 @@ flash_erase_command (char *cmd, int from_tty)
/* Print the name of each layers of our target stack. */
static void
-maintenance_print_target_stack (char *cmd, int from_tty)
+maintenance_print_target_stack (const char *cmd, int from_tty)
{
struct target_ops *t;