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 find_command


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f21b4d5c59136c38bb6d94eb6a29ad80d02043f4

commit f21b4d5c59136c38bb6d94eb6a29ad80d02043f4
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Sep 12 21:33:48 2017 -0600

    Constify find_command
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* findcmd.c (find_command): Constify.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/findcmd.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 077fa4a..48fb9b5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
+	* findcmd.c (find_command): Constify.
+
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
 	* ada-tasks.c (task_command_1, task_command): Constify.
 
 2017-09-27  Tom Tromey  <tom@tromey.com>
diff --git a/gdb/findcmd.c b/gdb/findcmd.c
index 5eba2dc..b43fefc 100644
--- a/gdb/findcmd.c
+++ b/gdb/findcmd.c
@@ -209,7 +209,7 @@ parse_find_args (const char *args, ULONGEST *max_countp,
 }
 
 static void
-find_command (char *args, int from_tty)
+find_command (const char *args, int from_tty)
 {
   struct gdbarch *gdbarch = get_current_arch ();
   bfd_boolean big_p = gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG;


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