mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-29 18:27:37 +01:00
Add slightly more debug output
This commit is contained in:
parent
8d6b00b082
commit
f10f851916
1 changed files with 6 additions and 0 deletions
|
@ -96,9 +96,15 @@ unw_step (unw_cursor_t *cursor)
|
|||
ret = dwarf_get (&c->dwarf, c->dwarf.loc[EIP], &c->dwarf.ip);
|
||||
if (ret < 0)
|
||||
{
|
||||
Debug (13, "dwarf_get([EIP=0x%x]) failed\n", DWARF_GET_LOC (c->dwarf.loc[EIP]));
|
||||
Debug (2, "returning %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug (13, "[EIP=0x%x] = 0x%x\n", DWARF_GET_LOC (c->dwarf.loc[EIP]),
|
||||
c->dwarf.ip);
|
||||
}
|
||||
}
|
||||
else
|
||||
c->dwarf.ip = 0;
|
||||
|
|
Loading…
Reference in a new issue