diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-03 20:54:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-03 20:54:43 +0000 |
commit | 1684382a9110efd6523ce304cb99c869053323c8 (patch) | |
tree | 40364f6d12e4c278425f9de47c2f4e15c98e8076 /gdb/thread.c | |
parent | 2729fb2483899a9b69e0d73500c79373156f27a7 (diff) | |
download | gdb-1684382a9110efd6523ce304cb99c869053323c8.tar.gz |
Snap const char * mess.cvs/cagney_writestrings-20030508-branchcagney_writestrings-20030508-branch
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 315f33b1c4a..84e5e8deb1e 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -56,11 +56,11 @@ static int highest_thread_num; static struct thread_info *find_thread_id (int num); -static void thread_command (char *tidstr, int from_tty); -static void thread_apply_all_command (char *, int); +static void thread_command (const char *tidstr, int from_tty); +static void thread_apply_all_command (const char *, int); static int thread_alive (struct thread_info *); -static void info_threads_command (char *, int); -static void thread_apply_command (char *, int); +static void info_threads_command (const char *, int); +static void thread_apply_command (const char *, int); static void restore_current_thread (ptid_t); static void switch_to_thread (ptid_t ptid); static void prune_threads (void); @@ -412,7 +412,7 @@ prune_threads (void) */ static void -info_threads_command (char *arg, int from_tty) +info_threads_command (const char *arg, int from_tty) { struct thread_info *tp; ptid_t current_ptid; @@ -536,7 +536,7 @@ make_cleanup_restore_current_thread (ptid_t inferior_ptid) */ static void -thread_apply_all_command (char *cmd, int from_tty) +thread_apply_all_command (const char *cmd, int from_tty) { struct thread_info *tp; struct cleanup *old_chain; @@ -576,9 +576,9 @@ thread_apply_all_command (char *cmd, int from_tty) } static void -thread_apply_command (char *tidlist, int from_tty) +thread_apply_command (const char *tidlist, int from_tty) { - char *cmd; + const char *cmd; char *p; struct cleanup *old_chain; struct cleanup *saved_cmd_cleanup_chain; @@ -657,7 +657,7 @@ thread_apply_command (char *tidlist, int from_tty) if prefix of arg is `apply'. */ static void -thread_command (char *tidstr, int from_tty) +thread_command (const char *tidstr, int from_tty) { if (!tidstr) { @@ -713,7 +713,7 @@ do_captured_thread_select (struct ui_out *uiout, void *tidstr) } enum gdb_rc -gdb_thread_select (struct ui_out *uiout, char *tidstr) +gdb_thread_select (struct ui_out *uiout, const char *tidstr) { return catch_exceptions (uiout, do_captured_thread_select, tidstr, NULL, RETURN_MASK_ALL); |