convert to_get_min_fast_tracepoint_insn_len
[deliverable/binutils-gdb.git] / gdb / infrun.c
index c0df12471748d2dcf99fa2ef1bff76eff5e5fc8f..5d60a908a2abc8070849c430b7ac296b88beba79 100644 (file)
@@ -4384,7 +4384,11 @@ handle_signal_stop (struct execution_control_state *ecs)
          ecs->event_thread->step_after_step_resume_breakpoint = 1;
          /* Reset trap_expected to ensure breakpoints are re-inserted.  */
          ecs->event_thread->control.trap_expected = 0;
-         keep_going (ecs);
+
+         /* If we were nexting/stepping some other thread, switch to
+            it, so that we don't continue it, losing control.  */
+         if (!switch_back_to_stepped_thread (ecs))
+           keep_going (ecs);
          return;
        }
 
This page took 0.023899 seconds and 4 git commands to generate.