1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-12 03:28:12 +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:
if (write)
return -UNW_EREADONLYREG;
*valp = c->bsp;
c->bsp = *valp;
else
*valp = c->bsp;
return 0;
case UNW_REG_SP:
if (write)
return -UNW_EREADONLYREG;
*valp = c->sp;
c->sp = *valp;
else
*valp = c->sp;
return 0;
case UNW_REG_IP: