aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-12 20:45:21 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:44:51 -0600
commitfc41a75bee01fbd0883e6df1e031d4d9e998c437 (patch)
treeaa12017ecbfd91e57d3850503d4329bc55d20eb8 /gdb/thread.c
parent67810076681180b74d92f98d11c4a3d94885c9e5 (diff)
downloadgdb-fc41a75bee01fbd0883e6df1e031d4d9e998c437.zip
gdb-fc41a75bee01fbd0883e6df1e031d4d9e998c437.tar.gz
gdb-fc41a75bee01fbd0883e6df1e031d4d9e998c437.tar.bz2
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.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c4
1 files changed, 2 insertions, 2 deletions
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;