Fix multiexec race.
* infrun.c (handle_inferior_event): Use get_thread_regcache with events ptid, not get_current_regcache.
This commit is contained in:
parent
d5f2ee2eb7
commit
cf00dfa7c9
@ -1,3 +1,9 @@
|
||||
2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
Fix multiexec race.
|
||||
* infrun.c (handle_inferior_event): Use get_thread_regcache
|
||||
with events ptid, not get_current_regcache.
|
||||
|
||||
2009-01-08 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
GDB crash with empty executable name (MinGW).
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user