mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-03 13:12:54 +01:00
Better imitate the choice of which register to identify as ip
for tilegx.
This commit is contained in:
parent
e360c3ddbd
commit
6150f2f426
1 changed files with 8 additions and 2 deletions
|
@ -53,8 +53,14 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
|
||||||
|
|
||||||
if (write)
|
if (write)
|
||||||
{
|
{
|
||||||
if (reg == UNW_TILEGX_PC)
|
if (ci->dwarf.use_prev_instr == 0) {
|
||||||
c->dwarf.ip = *valp; /* update the IP cache */
|
if (reg == UNW_TILEGX_PC)
|
||||||
|
c->dwarf.ip = *valp; /* update the IP cache */
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (reg == UNW_TILEGX_R55)
|
||||||
|
c->dwarf.ip = *valp; /* update the IP cache */
|
||||||
|
}
|
||||||
return dwarf_put (&c->dwarf, loc, *valp);
|
return dwarf_put (&c->dwarf, loc, *valp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue