1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-05 17:24:30 +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:
mostang.com!davidm 2004-04-28 04:54:17 +00:00
parent f04e4ef460
commit 9b21d8edaf

View file

@ -236,8 +236,8 @@ access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val, int write,
if (ret != 0)
{
Debug (1, "failed to %s %s\n",
write ? "write" : "read", unw_regname (reg));
Debug (1, "failed to %s %s (ret = %d)\n",
write ? "write" : "read", unw_regname (reg), ret);
return -UNW_EBADREG;
}