This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RFA: line up die and attribute offsets
- From: Jim Blandy <jimb at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Tue, 02 Oct 2007 14:00:22 -0700
- Subject: RFA: line up die and attribute offsets
I understand the value of having attributes' values' offsets in
'readelf -wi' output; I don't like that it makes the output busier.
Lining up die offsets and attribute offsets reduces the clutter.
Okay to commit?
binutils/ChangeLog:
2007-10-02 Jim Blandy <jimb@codesourcery.com>
* dwarf.c (process_debug_info): Line up section offsets of
attribute values with those of dies.
(read_and_display_attr): Reduce spacing here.
Index: binutils/dwarf.c
===================================================================
RCS file: /cvs/src/src/binutils/dwarf.c,v
retrieving revision 1.15
diff -u -r1.15 dwarf.c
--- binutils/dwarf.c 5 Jul 2007 16:54:45 -0000 1.15
+++ binutils/dwarf.c 2 Oct 2007 20:56:31 -0000
@@ -1505,7 +1505,7 @@
int do_loc)
{
if (!do_loc)
- printf (" %-18s:", get_AT_name (attribute));
+ printf (" %-18s:", get_AT_name (attribute));
data = read_and_display_attr_value (attribute, form, data, cu_offset,
pointer_size, offset_size,
dwarf_version, debug_info_p,
@@ -1747,7 +1747,7 @@
{
if (! do_loc)
/* Show the offset from where the tag was extracted. */
- printf (" <%2lx>", (unsigned long)(tags - section_begin));
+ printf (" <%2lx>", (unsigned long)(tags - section_begin));
tags = read_and_display_attr (attr->attribute,
attr->form,