mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-03-11 02:40:09 +01: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:
parent
5ef3b80ed0
commit
1170560e62
1 changed files with 1 additions and 20 deletions
|
@ -239,28 +239,9 @@ ia64_access_reg (struct ia64_cursor *c, unw_regnum_t reg, unw_word_t *valp,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case UNW_REG_SP:
|
case UNW_REG_SP:
|
||||||
case UNW_REG_PROC_START:
|
|
||||||
case UNW_REG_HANDLER:
|
|
||||||
case UNW_REG_LSDA:
|
|
||||||
if (write)
|
if (write)
|
||||||
return -UNW_EREADONLYREG;
|
return -UNW_EREADONLYREG;
|
||||||
switch (reg)
|
*valp = c->sp;
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case UNW_REG_IP:
|
case UNW_REG_IP:
|
||||||
|
|
Loading…
Add table
Reference in a new issue