summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-12-23 01:45:21 +0000
committerRoland McGrath <[email protected]>2005-12-23 01:45:21 +0000
commitfceb7b4965b5088a8215ffaf861991687460671e (patch)
tree23674c14d3b5bb131b32e76d1e10d104e5444043
parent124a798e51d7b29f1aa72fbe0bb7041dd3f0d727 (diff)
2005-12-22 Roland McGrath <[email protected]>
* dwfl_nextcu.c (dwfl_nextcu): Don't fail when dwfl_module_getdwarf failed with DWFL_E_NO_DWARF.
-rw-r--r--libdwfl/ChangeLog5
-rw-r--r--libdwfl/dwfl_nextcu.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index f6f9565c..ed52f44d 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-22 Roland McGrath <[email protected]>
+
+ * dwfl_nextcu.c (dwfl_nextcu): Don't fail when dwfl_module_getdwarf
+ failed with DWFL_E_NO_DWARF.
+
2005-11-26 Roland McGrath <[email protected]>
* dwfl_end.c (dwfl_end): Free the DWFL itself.
diff --git a/libdwfl/dwfl_nextcu.c b/libdwfl/dwfl_nextcu.c
index 7224bb35..34917f91 100644
--- a/libdwfl/dwfl_nextcu.c
+++ b/libdwfl/dwfl_nextcu.c
@@ -51,13 +51,13 @@ dwfl_nextcu (Dwfl *dwfl, Dwarf_Die *lastcu, Dwarf_Addr *bias)
if (mod == NULL)
return NULL;
- error = mod->dwerr;
- if (error == DWFL_E_NOERROR
+ if (mod->dwerr == DWFL_E_NOERROR
&& (mod->dw != NULL
|| INTUSE(dwfl_module_getdwarf) (mod, bias) != NULL))
break;
}
- while (error == DWFL_E_NO_DWARF);
+ while (mod->dwerr == DWFL_E_NO_DWARF);
+ error = mod->dwerr;
}
while (error == DWFL_E_NOERROR);