mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-06 01:34:29 +01:00
(access_reg) [HAVE_SYS_UC_ACCESS_H]: Also print errno when an
access fails. (Logical change 1.218)
This commit is contained in:
parent
f04e4ef460
commit
9b21d8edaf
1 changed files with 2 additions and 2 deletions
|
@ -236,8 +236,8 @@ access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val, int write,
|
||||||
|
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
Debug (1, "failed to %s %s\n",
|
Debug (1, "failed to %s %s (ret = %d)\n",
|
||||||
write ? "write" : "read", unw_regname (reg));
|
write ? "write" : "read", unw_regname (reg), ret);
|
||||||
return -UNW_EBADREG;
|
return -UNW_EBADREG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue