diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cfe7961341..ef9dd65a7b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-04-07 Pedro Alves + + * infrun.c (resume) : Get the + leader thread's regcache, not resume_ptid's. + 2015-04-06 Doug Evans * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as diff --git a/gdb/infrun.c b/gdb/infrun.c index f5faa0a22a..607a6e4695 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2364,7 +2364,7 @@ resume (enum gdb_signal sig) && use_displaced_stepping (gdbarch) && tp->control.trap_expected) { - struct regcache *resume_regcache = get_thread_regcache (resume_ptid); + struct regcache *resume_regcache = get_thread_regcache (tp->ptid); struct gdbarch *resume_gdbarch = get_regcache_arch (resume_regcache); CORE_ADDR actual_pc = regcache_read_pc (resume_regcache); gdb_byte buf[4];