From: Tom Tromey Date: Wed, 13 Sep 2017 02:45:21 +0000 (-0600) Subject: Constify some commands in thread.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc41a75bee01fbd0883e6df1e031d4d9e998c437;p=binutils-gdb.git Constify some commands in thread.c gdb/ChangeLog 2017-09-27 Tom Tromey * thread.c (thread_name_command, thread_find_command): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b799421c3e6..697a161a979 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-09-27 Tom Tromey + + * thread.c (thread_name_command, thread_find_command): Constify. + 2017-09-27 Tom Tromey * probe.c (enable_probes_command, disable_probes_command): diff --git a/gdb/thread.c b/gdb/thread.c index f447a9606eb..91c077a4909 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;