forked from pool/systemtap
16 lines
551 B
Diff
16 lines
551 B
Diff
|
--- tapsets.cxx-dist 2008-09-06 16:27:02.000000000 +0200
|
||
|
+++ tapsets.cxx 2008-12-12 16:31:18.000000000 +0100
|
||
|
@@ -1303,8 +1303,10 @@ struct dwflpp
|
||
|
// NB: fnmatch() is used without FNM_PATHNAME.
|
||
|
string prefixed_pattern = string("*/") + pattern;
|
||
|
|
||
|
- dwarf_assert ("dwarf_getsrcfiles",
|
||
|
- dwarf_getsrcfiles (cu, &srcfiles, &nfiles));
|
||
|
+ // just ignore the errors from dwarf_getsrcfiles; it's not fatal error
|
||
|
+ if (dwarf_getsrcfiles (cu, &srcfiles, &nfiles) < 0)
|
||
|
+ return;
|
||
|
+
|
||
|
{
|
||
|
for (size_t i = 0; i < nfiles; ++i)
|
||
|
{
|