mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-16 18:21:41 +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->sigcontext_addr = sc_addr;
|
||||||
c->dwarf.ret_addr_column = UNW_HPPA_RP;
|
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);
|
Debug (2, "failed to read IAOQ[1] (ret=%d)\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Reference in a new issue