This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]