Centralize thread ID printing
[deliverable/binutils-gdb.git] / gdb / breakpoint.c
index d72021e67167e527c03dbc740c21ef4c62c9197c..b2a3c4777272f66ff8df04c5f7b764b00a7c4bbc 100644 (file)
@@ -3249,8 +3249,8 @@ remove_threaded_breakpoints (struct thread_info *tp, int silent)
          b->disposition = disp_del_at_next_stop;
 
          printf_filtered (_("\
-Thread-specific breakpoint %d deleted - thread %d no longer in the thread list.\n"),
-                         b->number, tp->num);
+Thread-specific breakpoint %d deleted - thread %s no longer in the thread list.\n"),
+                          b->number, print_thread_id (tp));
 
          /* Hide it from the user.  */
          b->number = 0;
@@ -6514,9 +6514,11 @@ print_one_breakpoint_location (struct breakpoint *b,
 
   if (!part_of_multiple && b->thread != -1)
     {
+      struct thread_info *thr = find_thread_id (b->thread);
+
       /* FIXME should make an annotation for this.  */
       ui_out_text (uiout, "\tstop only in thread ");
-      ui_out_field_int (uiout, "thread", b->thread);
+      ui_out_field_string (uiout, "thread", print_thread_id (thr));
       ui_out_text (uiout, "\n");
     }
   
This page took 0.033267 seconds and 4 git commands to generate.