1
0
Fork 0
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:
Tommi Rantala 2012-09-12 10:58:29 +03:00
parent 6023ccf667
commit fc38a5339d

View file

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