1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-28 20:21:45 +02:00

(ia64_access_reg): Remove handling of UNW_REG_PROC_START, UNW_REG_HANDLER, and

UNW_REG_LSDA.

(Logical change 1.29)
This commit is contained in:
mostang.com!davidm 2002-12-03 08:19:58 +00:00
parent 5ef3b80ed0
commit 1170560e62

View file

@ -239,28 +239,9 @@ ia64_access_reg (struct ia64_cursor *c, unw_regnum_t reg, unw_word_t *valp,
return 0;
case UNW_REG_SP:
case UNW_REG_PROC_START:
case UNW_REG_HANDLER:
case UNW_REG_LSDA:
if (write)
return -UNW_EREADONLYREG;
switch (reg)
{
case UNW_REG_SP: *valp = c->sp; break;
case UNW_REG_PROC_START:*valp = c->pi.proc_start; break;
case UNW_REG_LSDA:
*valp = (intptr_t) (c->pi.pers_addr + 1);
break;
case UNW_REG_HANDLER:
if (c->pi.flags & IA64_FLAG_HAS_HANDLER)
/* *c->pers_addr is the linkage-table offset of the word
that stores the address of the personality routine's
function descriptor. */
return ia64_get (c, *c->pi.pers_addr + c->pi.gp, valp);
else
*valp = 0;
break;
}
*valp = c->sp;
return 0;
case UNW_REG_IP: