mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* infrun.c (handle_inferior_event): Context switch to the new
thread when resuming for a new_thread_event.
This commit is contained in:
@@ -2746,6 +2746,8 @@ targets should add new threads to the thread list themselves in non-stop mode.")
|
||||
in either the OS or the native code). Therefore we need to
|
||||
continue all threads in order to make progress. */
|
||||
|
||||
if (!ptid_equal (ecs->ptid, inferior_ptid))
|
||||
context_switch (ecs->ptid);
|
||||
target_resume (RESUME_ALL, 0, TARGET_SIGNAL_0);
|
||||
prepare_to_wait (ecs);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user