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.
This commit is contained in:
parent
d31028e8cc
commit
0d64622696
8 changed files with 188 additions and 60 deletions
|
@ -55,6 +55,7 @@
|
|||
#include "progress.h"
|
||||
#include "bucomm.h"
|
||||
#include "elfcomm.h"
|
||||
#include "demanguse.h"
|
||||
#include "dwarf.h"
|
||||
#include "ctf-api.h"
|
||||
#include "getopt.h"
|
||||
|
@ -330,10 +331,9 @@ usage (FILE *stream, int status)
|
|||
fprintf (stream, _("\
|
||||
-F, --file-offsets Include file offsets when displaying information\n"));
|
||||
fprintf (stream, _("\
|
||||
-C, --demangle[=STYLE] Decode mangled/processed symbol names\n\
|
||||
The STYLE, if specified, can be `auto', `gnu',\n\
|
||||
`lucid', `arm', `hp', `edg', `gnu-v3', `java'\n\
|
||||
or `gnat'\n"));
|
||||
-C, --demangle[=STYLE] Decode mangled/processed symbol names\n"));
|
||||
display_demangler_styles (stream, _("\
|
||||
STYLE can be "));
|
||||
fprintf (stream, _("\
|
||||
--recurse-limit Enable a limit on recursion whilst demangling\n\
|
||||
(default)\n"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue