2010-05-25 10:29:40 +02:00
|
|
|
From: Takashi Iwai <tiwai@novell.com>
|
|
|
|
Subject: Fix for kernel debuginfo files
|
|
|
|
References: https://bugzilla.novell.com/show_bug.cgi?id=468247, comments 17-20
|
|
|
|
References: https://bugzilla.novell.com/show_bug.cgi?id=433182
|
|
|
|
|
|
|
|
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
|
|
|
|
...
|
2009-05-15 12:08:26 +02:00
|
|
|
---
|
2010-05-25 10:29:40 +02:00
|
|
|
|
|
|
|
|
2009-05-15 12:08:26 +02:00
|
|
|
libdw/dwarf_getsrclines.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
2014-01-29 20:02:33 +01:00
|
|
|
--- a/libdw/dwarf_getsrclines.c
|
|
|
|
+++ b/libdw/dwarf_getsrclines.c
|
2015-01-07 20:43:35 +01:00
|
|
|
@@ -293,8 +293,10 @@
|
|
|
|
/* Consistency check. */
|
|
|
|
if (unlikely (linep != header_start + header_length))
|
|
|
|
{
|
2009-01-08 18:03:09 +01:00
|
|
|
+#if 0
|
2015-01-07 20:43:35 +01:00
|
|
|
__libdw_seterrno (DWARF_E_INVALID_DWARF);
|
|
|
|
goto out;
|
2009-01-08 18:03:09 +01:00
|
|
|
+#endif
|
2015-01-07 20:43:35 +01:00
|
|
|
}
|
2009-01-08 18:03:09 +01:00
|
|
|
|
2015-01-07 20:43:35 +01:00
|
|
|
/* We are about to process the statement program. Initialize the
|