mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-04-18 02:22:16 +02: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;
|
sr->curr.reg[IA64_REG_RP].val = sr->return_link_reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sr->curr.reg[IA64_REG_BSP].when != IA64_WHEN_NEVER
|
if (sr->when_target > sr->curr.reg[IA64_REG_BSP].when
|
||||||
&& sr->curr.reg[IA64_REG_BSP].when >= sr->when_target)
|
&& sr->when_target > sr->curr.reg[IA64_REG_BSPSTORE].when
|
||||||
&& (sr->curr.reg[IA64_REG_BSPSTORE].when != IA64_WHEN_NEVER
|
&& sr->when_target > sr->curr.reg[IA64_REG_RNAT].when)
|
||||||
&& 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))
|
|
||||||
{
|
|
||||||
debug (10, "unwind: func 0x%lx may switch the register-backing-store\n",
|
debug (10, "unwind: func 0x%lx may switch the register-backing-store\n",
|
||||||
c->pi.start_ip);
|
c->pi.start_ip);
|
||||||
c->pi.flags |= UNW_PI_FLAG_IA64_RBS_SWITCH;
|
c->pi.flags |= UNW_PI_FLAG_IA64_RBS_SWITCH;
|
||||||
|
|
Loading…
Add table
Reference in a new issue