mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 03:53:43 +01:00
HPPA: properly check dwarf_get() return value in unw_step()
This commit is contained in:
parent
6023ccf667
commit
fc38a5339d
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ unw_step (unw_cursor_t *cursor)
|
|||
c->sigcontext_addr = sc_addr;
|
||||
c->dwarf.ret_addr_column = UNW_HPPA_RP;
|
||||
|
||||
if ((ret = dwarf_get (&c->dwarf, iaoq_loc, &ip)) , 0)
|
||||
if ((ret = dwarf_get (&c->dwarf, iaoq_loc, &ip)) < 0)
|
||||
{
|
||||
Debug (2, "failed to read IAOQ[1] (ret=%d)\n", ret);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue