diff options
author | Pedro Alves <pedro@codesourcery.com> | 2009-06-29 18:27:23 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2009-06-29 18:27:23 +0000 |
commit | a28bb9b5f708c2ea5f246a369ff3791086440639 (patch) | |
tree | 9f03efe1bab4186d9c6e8f93d5feb62914ab94bb | |
parent | 1dea0fa6a2a22b60d0541f5960ece7abf8f433c6 (diff) | |
download | gdb-a28bb9b5f708c2ea5f246a369ff3791086440639.tar.gz |
* infrun.c (handle_inferior_event): Context switch to the new
thread when resuming for a new_thread_event.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infrun.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 18832c62905..934248aa9e2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-06-29 Pedro Alves <pedro@codesourcery.com> + + * infrun.c (handle_inferior_event): Context switch to the new + thread when resuming for a new_thread_event. + 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com> * ada-lang.h (ada_convert_actual): Add GDBARCH argument. diff --git a/gdb/infrun.c b/gdb/infrun.c index a2ab386be91..45a8c8778f0 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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; |