From: Ulrich Drepper Date: Fri, 18 Jan 2008 20:08:54 +0000 (+0000) Subject: Fixup after DWARF_VERSION bump. X-Git-Tag: elfutils-0.132~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b27ce0029031cec586ccd6b8ba1e26d3bccbcad9;p=thirdparty%2Felfutils.git Fixup after DWARF_VERSION bump. --- diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 004e0fa11..b2eeb139d 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,8 @@ +2008-01-18 Ulrich Drepper + + * 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 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define. diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c index e4ec267ff..9ad6963d9 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;