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:
parent
7c986f6190
commit
36a0275014
1 changed files with 6 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue