[RFC] readelf -w/-debug-dump= association

Nick Clifton nickc@redhat.com
Thu May 27 10:58:20 GMT 2021


Hi Alan,

> +  -w/--debug-dump=[a/abbrev, A/addr, r/aranges, c/cu_index, L/decodedline,\n\
> +                   f/frames, F/frames-interp, g/gdb_index, i/info, o/loc,\n\
> +                   m/macro, p/pubnames, t/pubtypes, R/Ranges, l/rawline, s/str\n\
> +                   O/str-offsets, u/trace_abbrev, T/trace_aranges, U/trace_info]\n\

I like the idea, but reading the text above it implies that, for example "--debug-dump=a"
could be a valid option.

As an alternative we could list out the options long hand:

   -w/--debug-dump          Dump all relevant debug info
   -wa/--debug-dump=abbrev  Dump the contents of the .debug_abbrev sections
   -wA/--debug-dump=addr    Dump the contents of the .debug_addr sections
   [...]
   -wU/--debug-dump=trace_info  Dump the contents of the umm, whichever section this is
   Note: -w[letter] options can be combined, eg -wai
   Note: --debug-dump options can be combined, eg --debug-dump=abbrev,info

A lot more verbose, but probably more helpful to those unfamiliar with readelf.
Just a suggestion.  Go with your idea if you prefer it.

Cheers
   Nick



More information about the Binutils mailing list