mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
Displaced stepping debug: fetch the right regcache
Although not currently possible in practice when we get here, 'resume_ptid' can also be a wildcard throughout this function. It's clearer to fetch the regcache using the thread's ptid. gdb/ChangeLog: 2015-04-07 Pedro Alves <pedro@codesourcery.com> * infrun.c (resume) <displaced stepping debug output>: Get the leader thread's regcache, not resume_ptid's.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2015-04-07 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* infrun.c (resume) <displaced stepping debug output>: Get the
|
||||||
|
leader thread's regcache, not resume_ptid's.
|
||||||
|
|
||||||
2015-04-06 Doug Evans <xdje42@gmail.com>
|
2015-04-06 Doug Evans <xdje42@gmail.com>
|
||||||
|
|
||||||
* symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
|
* symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
|
||||||
|
@ -2364,7 +2364,7 @@ resume (enum gdb_signal sig)
|
|||||||
&& use_displaced_stepping (gdbarch)
|
&& use_displaced_stepping (gdbarch)
|
||||||
&& tp->control.trap_expected)
|
&& 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);
|
struct gdbarch *resume_gdbarch = get_regcache_arch (resume_regcache);
|
||||||
CORE_ADDR actual_pc = regcache_read_pc (resume_regcache);
|
CORE_ADDR actual_pc = regcache_read_pc (resume_regcache);
|
||||||
gdb_byte buf[4];
|
gdb_byte buf[4];
|
||||||
|
Reference in New Issue
Block a user