Fix for kernel debuginfo files
authorTakashi Iwai <tiwai@novell.com>
Thu, 8 Nov 2012 02:10:56 +0000 (18:10 -0800)
committerChanho Park <chanho61.park@samsung.com>
Wed, 26 Nov 2014 14:33:39 +0000 (23:33 +0900)
Above BZ originally occured with Systemtap testsuite (stmt_rel.exp).

# stap -e 'probe kernel.statement("bio_put@fs/bio.c:*") {}'
semantic error: libdw failure (dwarf_getsrcfiles): invalid DWARF
...

libdw/dwarf_getsrclines.c

index 7b174cf..ae49527 100644 (file)
@@ -306,8 +306,10 @@ dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines, size_t *nlines)
       /* Consistency check.  */
       if (unlikely (linep != header_start + header_length))
        {
+#if 0
          __libdw_seterrno (DWARF_E_INVALID_DWARF);
          goto out;
+#endif
        }
 
         /* We are about to process the statement program.  Initialize the