Per-inferior/Inferior-qualified thread IDs
[deliverable/binutils-gdb.git] / gdb / remote.c
index e825d27d8405688bef8f00b6d6e456220c6d4a71..4a42da8ec27477149733bfe5c3a254044960d0be 100644 (file)
@@ -3969,7 +3969,9 @@ process_initial_stop_replies (int from_tty)
          && thread->suspend.waitstatus_pending_p)
        selected = thread;
 
-      if (lowest_stopped == NULL || thread->num < lowest_stopped->num)
+      if (lowest_stopped == NULL
+         || thread->inf->num < lowest_stopped->inf->num
+         || thread->per_inf_num < lowest_stopped->per_inf_num)
        lowest_stopped = thread;
 
       if (non_stop)
This page took 0.031182 seconds and 4 git commands to generate.