This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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]

[Bug tools/22250] readelf should support --dwarf-start and --dwarf-depth


https://sourceware.org/bugzilla/show_bug.cgi?id=22250

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
For reference this is the binutils objectdump man page documentation for these
two options:

       --dwarf-depth=n
           Limit the dump of the ".debug_info" section to n children.  This is
           only useful with --dwarf=info.  The default is to print all DIEs;
           the special value 0 for n will also have this effect.

           With a non-zero value for n, DIEs at or deeper than n levels will
           not be printed.  The range for n is zero-based.

       --dwarf-start=n
           Print only DIEs beginning with the DIE numbered n.  This is only
           useful with --dwarf=info.

           If specified, this option will suppress printing of any header
           information and all DIEs before the DIE numbered n.  Only siblings
           and children of the specified DIE will be printed.

           This can be used in conjunction with --dwarf-depth.

You can specify "the DIE numbered n" as decimal or 0x hexadecimal. It seems it
isn't really the "number" but the first DIE starting after the given offset
from the start of the section data. Also it suppresses printing of the actual
CU headers (which would make it hard with the output format of eu-readelf to
see where a CU starts/ends). It will just continue printing DIEs till the end
of the section.

Which properties of the above are important to you?
Is the given selection mechanism of which DIEs to print the most convenient?
Is it important to suppress header printing?
Since this really is about printing something after an offset from the start of
a section, should it be extended to other debug sections?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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