mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-23 07:57:38 +01:00
(_UPT_access_reg): Allow reading of r0 (UNW_IA64_GR+0) to support ".save rp, r0"
idiom. (Logical change 1.55)
This commit is contained in:
parent
9f48ae3751
commit
2fbf4cece7
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ _UPT_access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val,
|
|||
else
|
||||
switch (reg)
|
||||
{
|
||||
case UNW_IA64_GR + 0:
|
||||
if (write)
|
||||
return -UNW_EBADREG;
|
||||
*val = 0;
|
||||
return 0;
|
||||
|
||||
case UNW_REG_IP:
|
||||
{
|
||||
unsigned long ip, psr;
|
||||
|
|
Loading…
Reference in a new issue