diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2010-01-08 16:54:14 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2010-01-08 16:54:14 +0000 |
commit | cf00dfa7c9b86f171c2f331f4bafcf2593d868e9 (patch) | |
tree | 621cf5ff207bc1586c64155f5a57844bed1a4aba /gdb/infrun.c | |
parent | d5f2ee2eb7f848b12eff7dcc2e82bbb8801f190e (diff) | |
download | gdb-cf00dfa7c9b86f171c2f331f4bafcf2593d868e9.zip gdb-cf00dfa7c9b86f171c2f331f4bafcf2593d868e9.tar.gz gdb-cf00dfa7c9b86f171c2f331f4bafcf2593d868e9.tar.bz2 |
Fix multiexec race.
* infrun.c (handle_inferior_event): Use get_thread_regcache
with events ptid, not get_current_regcache.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index a657026..cfa7e82 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3232,7 +3232,8 @@ targets should add new threads to the thread list themselves in non-stop mode.") if (ecs->event_thread->stop_signal == TARGET_SIGNAL_TRAP) { int thread_hop_needed = 0; - struct address_space *aspace = get_regcache_aspace (get_current_regcache ()); + struct address_space *aspace = + get_regcache_aspace (get_thread_regcache (ecs->ptid)); /* Check if a regular breakpoint has been hit before checking for a potential single step breakpoint. Otherwise, GDB will |