Add demangling support to readelf.
authorNick Clifton <nickc@redhat.com>
Wed, 12 Aug 2020 12:31:59 +0000 (13:31 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 12 Aug 2020 12:31:59 +0000 (13:31 +0100)
commit79bc120c7be00596098c09cecd25383ae6ddce34
tree52603d55375f972945e4e25f611f7bd89f637a1e
parent79ddc88496c3c18eac94b7776dc75b05c33abf25
Add demangling support to readelf.

PR binutils/26331
* readelf.c (do_demangle): New option flag.
(print_symbol): If do_demangle is enabled, demangle the symbol.
(enum long_option_values): New enum to hold long option values.
(options): Add demangle, no-demangle, recursion-limit and
no-recursion-limit options.  Alpha sort the table.
(usage): Describe the new options.
(parse_args): Handle the new options.
* NEWS: Mention the new feature.
* doc/binutils.texi: Document the new feature.
* testsuite/binutils-all/readelf.exp: Test the new feature.
* testsuite/binutils-all/mangled.s: New file - assembler source.
* testsuite/binutils-all/readelf.demangled: New file - expected
output from readelf.
binutils/ChangeLog
binutils/NEWS
binutils/doc/binutils.texi
binutils/readelf.c
binutils/testsuite/binutils-all/mangled.s [new file with mode: 0644]
binutils/testsuite/binutils-all/readelf.demangled [new file with mode: 0644]
binutils/testsuite/binutils-all/readelf.exp