summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-01-18 20:08:54 +0000
committerUlrich Drepper <drepper@redhat.com>2008-01-18 20:08:54 +0000
commitb27ce0029031cec586ccd6b8ba1e26d3bccbcad9 (patch)
tree520f62ae91da9bce1f15cde464ba76af70d0685e
parentc57b65cf3b1a7a19b25fdac91e83c514fd93e565 (diff)
Fixup after DWARF_VERSION bump.
-rw-r--r--libdw/ChangeLog5
-rw-r--r--libdw/dwarf_getsrclines.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 004e0fa1..b2eeb139 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-18 Ulrich Drepper <drepper@redhat.com>
+
+ * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
+ of DWARF_VERSION comparison, just fail if the file's version is newer.
+
2008-01-17 Nick Clifton <nickc@redhat.com>
* dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c
index e4ec267f..9ad6963d 100644
--- a/libdw/dwarf_getsrclines.c
+++ b/libdw/dwarf_getsrclines.c
@@ -180,7 +180,7 @@ dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines, size_t *nlines)
/* The next element of the header is the version identifier. */
uint_fast16_t version = read_2ubyte_unaligned_inc (dbg, linep);
- if (unlikely (version != DWARF_VERSION))
+ if (unlikely (version > DWARF_VERSION))
{
__libdw_seterrno (DWARF_E_VERSION);
goto out;