1
0
Fork 0
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:
mostang.com!davidm 2003-01-23 10:04:09 +00:00
parent 73fd3a8d4a
commit 3b6290bef2

View file

@ -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;