mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-27 13:33:43 +01:00
(create_state_record_for): Fix thinko in test whether bsp/bspstore/rnat have been
saved. (Logical change 1.41)
This commit is contained in:
parent
73fd3a8d4a
commit
3b6290bef2
1 changed files with 4 additions and 7 deletions
|
@ -971,13 +971,10 @@ create_state_record_for (struct cursor *c, struct ia64_state_record *sr,
|
|||
sr->curr.reg[IA64_REG_RP].val = sr->return_link_reg;
|
||||
}
|
||||
|
||||
if ((sr->curr.reg[IA64_REG_BSP].when != IA64_WHEN_NEVER
|
||||
&& sr->curr.reg[IA64_REG_BSP].when >= sr->when_target)
|
||||
&& (sr->curr.reg[IA64_REG_BSPSTORE].when != IA64_WHEN_NEVER
|
||||
&& sr->curr.reg[IA64_REG_BSPSTORE].when >= sr->when_target)
|
||||
&& (sr->curr.reg[IA64_REG_RNAT].when != IA64_WHEN_NEVER
|
||||
&& sr->curr.reg[IA64_REG_RNAT].when >= sr->when_target))
|
||||
{
|
||||
if (sr->when_target > sr->curr.reg[IA64_REG_BSP].when
|
||||
&& sr->when_target > sr->curr.reg[IA64_REG_BSPSTORE].when
|
||||
&& sr->when_target > sr->curr.reg[IA64_REG_RNAT].when)
|
||||
{
|
||||
debug (10, "unwind: func 0x%lx may switch the register-backing-store\n",
|
||||
c->pi.start_ip);
|
||||
c->pi.flags |= UNW_PI_FLAG_IA64_RBS_SWITCH;
|
||||
|
|
Loading…
Reference in a new issue