The return value of dwarf_getfuncs is a ptrdiff_t that is zero on success,
or non-zero (an offset to continue the search) when the callback returned
DWARF_CB_ABORT or on error. When an error occurs dwarf_errno is set.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2013-11-05 Mark Wielaard <mjw@redhat.com>
+
+ * allfcts.c (main): Correct dwarf_getfuncs return value check.
+
2013-10-10 Mark Wielaard <mjw@redhat.com>
Josh Stone <jistone@redhat.com>
{
doff = dwarf_getfuncs (die, cb, NULL, doff);
}
- while (doff > 0);
+ while (doff != 0 && dwarf_errno () == 0);
off = noff;
}