This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFA] Fix error in dwarf.c:process_debug_info function
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Binutils'" <binutils at sourceware dot org>, "'Nick Clifton'" <nickc at redhat dot com>
- Date: Fri, 25 Mar 2011 16:37:15 +0100
- Subject: [RFA] Fix error in dwarf.c:process_debug_info function
I think that there is a mistake in
process_debug_info function.
IMHO, initial_length_size is not the good marker to
know if the length is 32 or 64-bit.
Could someone please check and confirm this?
Thanks in advance,
Pierre Muller
GDB pascal language maintainer
Index: dwarf.c
===================================================================
RCS file: /cvs/src/src/binutils/dwarf.c,v
retrieving revision 1.86
diff -u -p -r1.86 dwarf.c
--- dwarf.c 25 Mar 2011 15:15:52 -0000 1.86
+++ dwarf.c 25 Mar 2011 15:31:42 -0000
@@ -2072,7 +2072,7 @@ process_debug_info (struct dwarf_section
dwarf_vmatoa ("x", cu_offset));
printf (_(" Length: 0x%s (%s)\n"),
dwarf_vmatoa ("x", compunit.cu_length),
- initial_length_size == 8 ? "64-bit" : "32-bit");
+ offset_size == 8 ? "64-bit" : "32-bit");
printf (_(" Version: %d\n"), compunit.cu_version);
printf (_(" Abbrev Offset: %s\n"),
dwarf_vmatoa ("d", compunit.cu_abbrev_offset));