1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-29 12:41:44 +02: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:
hp.com!davidm 2003-02-26 08:33:57 +00:00
parent 9f48ae3751
commit 2fbf4cece7

View file

@ -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;