This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Constify some commands in thread.c
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Sep 2017 14:57:22 -0000
- Subject: [binutils-gdb] Constify some commands in thread.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fc41a75bee01fbd0883e6df1e031d4d9e998c437
commit fc41a75bee01fbd0883e6df1e031d4d9e998c437
Author: Tom Tromey <tom@tromey.com>
Date: Tue Sep 12 20:45:21 2017 -0600
Constify some commands in thread.c
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* thread.c (thread_name_command, thread_find_command): Constify.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/thread.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b799421..697a161 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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):
Constify.
diff --git a/gdb/thread.c b/gdb/thread.c
index f447a96..91c077a 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -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;