]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
Fix demangle style usage info
authorAlan Modra <amodra@gmail.com>
Thu, 11 Nov 2021 09:51:32 +0000 (20:21 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 12 Nov 2021 04:03:31 +0000 (14:33 +1030)
commit0d64622696e02ad649d048f4af3a3f293481f89f
treec25c5549ac2a3d6d9ad70a1a73cb12a1df6f2b13
parentd31028e8ccfa9dbc76c3c7f5dc8fadbe8af11e6b
Fix demangle style usage info

Extract allowed styles from libiberty, so we don't have to worry about
our help messages getting out of date.  The function probably belongs
in libiberty/cplus-dem.c but it can be here for a while to iron out
bugs.

PR 28581
* demanguse.c: New file.
* demanguse.h: New file.
* nm.c (usage): Break up output.  Use display_demangler_styles.
* objdump.c (usage): Use display_demangler_styles.
* readelf.c (usage): Likewise.
* Makefile.am: Add demanguse.c and demanguse.h.
* Makefile.in: Regenerate.
* po/POTFILESin: Regenerate.
binutils/Makefile.am
binutils/Makefile.in
binutils/demanguse.c [new file with mode: 0644]
binutils/demanguse.h [new file with mode: 0644]
binutils/nm.c
binutils/objdump.c
binutils/po/POTFILES.in
binutils/readelf.c