This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Increment hdrptr by 8 after SAFE_BYTE_GET64


This checkin:

http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/dwarf.c.diff?cvsroot=src&r1=1.126&r2=1.127

has

       if (do_types)
         {
-          byte_get_64 (hdrptr, &signature_high, &signature_low);
-          hdrptr += 8;
-          type_offset = byte_get (hdrptr, offset_size);
-          hdrptr += offset_size;
+	  SAFE_BYTE_GET64 (hdrptr, &signature_high, &signature_low, end);
+	  SAFE_BYTE_GET_AND_INC (type_offset, hdrptr, offset_size, end);

It removed "hdrptr += 8;".  I checked in this patch to restore it.

-- 
H.J.
--
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8ae4ebc..6534091 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* dwarf.c (process_debug_info): Increment hdrptr by 8 after
+	SAFE_BYTE_GET64.
+
 2013-03-27  Phil Krylov <phil.krylov@gmail.com>

 	PR binutils/13409
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 1787e7e..a3a5949 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -2238,6 +2238,7 @@ process_debug_info (struct dwarf_section *section,
       if (do_types)
         {
 	  SAFE_BYTE_GET64 (hdrptr, &signature_high, &signature_low, end);
+	  hdrptr += 8;
 	  SAFE_BYTE_GET_AND_INC (type_offset, hdrptr, offset_size, end);
         }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]