aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-02-05 18:54:50 +0000
committerPedro Alves <palves@redhat.com>2009-02-05 18:54:50 +0000
commit54ba13f733396d107167bf89afd43db66bebe779 (patch)
tree7374f85aa64ed651745876a31b1deb7f1f5aa17d /gdb/thread.c
parent9d49bdc28ad672f6e23e9f33759f73968d6885ff (diff)
downloadfsf-binutils-gdb-54ba13f733396d107167bf89afd43db66bebe779.zip
fsf-binutils-gdb-54ba13f733396d107167bf89afd43db66bebe779.tar.gz
fsf-binutils-gdb-54ba13f733396d107167bf89afd43db66bebe779.tar.bz2
* target.h (target_tid_to_str): Delete.
* thread.c (print_thread_info, thread_apply_all_command) (thread_apply_command, thread_command, do_captured_thread_select): Use target_pid_to_str instead of target_tid_to_str. * linux-fork.c (delete_fork_command): Likewise.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 1d6d9c4..9dea7c2 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -746,7 +746,7 @@ print_thread_info (struct ui_out *uiout, int requested_thread, int pid)
ui_out_field_int (uiout, "id", tp->num);
ui_out_text (uiout, " ");
- ui_out_field_string (uiout, "target-id", target_tid_to_str (tp->ptid));
+ ui_out_field_string (uiout, "target-id", target_pid_to_str (tp->ptid));
extra_info = target_extra_thread_info (tp);
if (extra_info)
@@ -996,7 +996,7 @@ thread_apply_all_command (char *cmd, int from_tty)
switch_to_thread (tp->ptid);
printf_filtered (_("\nThread %d (%s):\n"),
- tp->num, target_tid_to_str (inferior_ptid));
+ tp->num, target_pid_to_str (inferior_ptid));
execute_command (cmd, from_tty);
strcpy (cmd, saved_cmd); /* Restore exact command used previously */
}
@@ -1066,7 +1066,7 @@ thread_apply_command (char *tidlist, int from_tty)
switch_to_thread (tp->ptid);
printf_filtered (_("\nThread %d (%s):\n"), tp->num,
- target_tid_to_str (inferior_ptid));
+ target_pid_to_str (inferior_ptid));
execute_command (cmd, from_tty);
/* Restore exact command used previously. */
@@ -1091,11 +1091,11 @@ thread_command (char *tidstr, int from_tty)
if (is_exited (inferior_ptid))
printf_filtered (_("[Current thread is %d (%s) (exited)]\n"),
pid_to_thread_id (inferior_ptid),
- target_tid_to_str (inferior_ptid));
+ target_pid_to_str (inferior_ptid));
else
printf_filtered (_("[Current thread is %d (%s)]\n"),
pid_to_thread_id (inferior_ptid),
- target_tid_to_str (inferior_ptid));
+ target_pid_to_str (inferior_ptid));
}
else
error (_("No stack."));
@@ -1139,7 +1139,7 @@ do_captured_thread_select (struct ui_out *uiout, void *tidstr)
ui_out_text (uiout, "[Switching to thread ");
ui_out_field_int (uiout, "new-thread-id", pid_to_thread_id (inferior_ptid));
ui_out_text (uiout, " (");
- ui_out_text (uiout, target_tid_to_str (inferior_ptid));
+ ui_out_text (uiout, target_pid_to_str (inferior_ptid));
ui_out_text (uiout, ")]");
/* Note that we can't reach this with an exited thread, due to the