Fix for kernel debuginfo files
authorTakashi Iwai <tiwai@novell.com>
Thu, 8 Nov 2012 02:10:56 +0000 (18:10 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Sat, 6 Jul 2013 14:57:51 +0000 (10:57 -0400)
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 0758023..53b4a45 100644 (file)
@@ -296,8 +296,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