1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-23 03:53:43 +01:00

Allow write-access to UNW_IA64_BSP and UNW_REG_SP.

(Logical change 1.303)
This commit is contained in:
hp.com!davidm 2005-05-20 15:32:18 +00:00
parent 7c986f6190
commit 36a0275014

View file

@ -371,14 +371,16 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
case UNW_IA64_BSP: case UNW_IA64_BSP:
if (write) if (write)
return -UNW_EREADONLYREG; c->bsp = *valp;
*valp = c->bsp; else
*valp = c->bsp;
return 0; return 0;
case UNW_REG_SP: case UNW_REG_SP:
if (write) if (write)
return -UNW_EREADONLYREG; c->sp = *valp;
*valp = c->sp; else
*valp = c->sp;
return 0; return 0;
case UNW_REG_IP: case UNW_REG_IP: