Constify some commands in thread.c
authorTom Tromey <tom@tromey.com>
Wed, 13 Sep 2017 02:45:21 +0000 (20:45 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:51 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* thread.c (thread_name_command, thread_find_command): Constify.

gdb/ChangeLog
gdb/thread.c

index b799421c3e6bfc3390e529e24c16d68b461d1a4a..697a161a979d8a81536d552c5184903103554c49 100644 (file)
@@ -1,3 +1,7 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * thread.c (thread_name_command, thread_find_command): Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * probe.c (enable_probes_command, disable_probes_command):
index f447a9606ebb37dfa2b06c054acf267671d34081..91c077a4909ba40a595a985b2caf098dbf655a57 100644 (file)
@@ -1912,7 +1912,7 @@ thread_command (char *tidstr, int from_tty)
 /* Implementation of `thread name'.  */
 
 static void
-thread_name_command (char *arg, int from_tty)
+thread_name_command (const char *arg, int from_tty)
 {
   struct thread_info *info;
 
@@ -1929,7 +1929,7 @@ thread_name_command (char *arg, int from_tty)
 /* Find thread ids with a name, target pid, or extra info matching ARG.  */
 
 static void
-thread_find_command (char *arg, int from_tty)
+thread_find_command (const char *arg, int from_tty)
 {
   struct thread_info *tp;
   const char *tmp;
This page took 0.033347 seconds and 4 git commands to generate.