]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fixup after DWARF_VERSION bump.
authorUlrich Drepper <drepper@redhat.com>
Fri, 18 Jan 2008 20:08:54 +0000 (20:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 18 Jan 2008 20:08:54 +0000 (20:08 +0000)
libdw/ChangeLog
libdw/dwarf_getsrclines.c

index 004e0fa11d36596ec1ad3b50101bb8215c44119b..b2eeb139ddda8c1cfbbd79d84a4294263e16c328 100644 (file)
@@ -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.
index e4ec267ffdcc95ce793ae93e908421b791d44c52..9ad6963d9b004008dd9f0db656a83ecc37e57dfe 100644 (file)
@@ -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;