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: Improve display of information in the .debug_info section


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.

Attachment: dwarf.c.patch.bz2
Description: BZip2 compressed data


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