Fix for spurious prompts in secondary UIs
[deliverable/binutils-gdb.git] / gdb / ada-tasks.c
index 062c3722ad324892f17273caf9ed86fa09ea8c6a..c067ae66727f12546cf3d43cd4195de15bed9ee8 100644 (file)
@@ -1102,7 +1102,7 @@ print_ada_task_info (struct ui_out *uiout,
       /* Print the associated Thread ID.  */
       if (ui_out_is_mi_like_p (uiout))
         {
-         const int thread_id = pid_to_thread_id (task_info->ptid);
+         const int thread_id = ptid_to_global_thread_id (task_info->ptid);
 
          if (thread_id != 0)
            ui_out_field_int (uiout, "thread-id", thread_id);
This page took 0.023366 seconds and 4 git commands to generate.