PATCH: Improve display of information in the .debug_info section
Nick Clifton
nickc@redhat.com
Sat Jan 5 17:03:00 GMT 2008
Hi Guys,
I am applying the attached patch to make a few small improvements to
the information displayed about the .debug_info section by tools
like readelf. The first improvement is to show the abbreviation and
tag referred to by a DW_AT_import attribute. The second change is
to be more consistent about prefixing hex numbers with 0x when it is
not obvious that they are being displayed as such. Finally I have
made a few improvements to some of the warning messages that are
displayed when corrupt information is detected.
Checked by rebuilding all of the regular toolchains and running
regression tests.
Cheers
Nick
binutils/ChangeLog
2008-01-03 Nick Clifton <nickc@redhat.com>
* dwarf.c (read_and_display_attr_value): Prefix values that are
displayed in hexadecimal with 0x.
For the DW_AT_import attribute display the abbreviation number and
tag of the imported DIE.
(process_debug_info): Warn about lengths that reserved by the
DWARF3 specification.
Provide more information when corrupted DIEs are detected.
Warn if DIE corruption makes the sibling level negative.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarf.c.patch.bz2
Type: application/x-bzip2
Size: 2369 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20080105/8c6a4342/attachment.bz2>
More information about the Binutils
mailing list