diff options
author | David MacKenzie <djm@cygnus> | 1993-08-13 00:02:25 +0000 |
---|---|---|
committer | David MacKenzie <djm@cygnus> | 1993-08-13 00:02:25 +0000 |
commit | d6a4c375697112e9f8d35e787e703464708fa052 (patch) | |
tree | 9adc2f8b3f2c5ac525358f8b6814a50fb57a8d78 /binutils/nm.1 | |
parent | 8b46d73404b9d7d8010975e68a1279f11dfc2671 (diff) | |
download | gdb-d6a4c375697112e9f8d35e787e703464708fa052.zip gdb-d6a4c375697112e9f8d35e787e703464708fa052.tar.gz gdb-d6a4c375697112e9f8d35e787e703464708fa052.tar.bz2 |
* Makefile.in ($(NM_PROG)): Depend on demangle.o.
(demangle.o): New target.
(cplus-dem.o): Depend on it, to force compilation order when doing
parallel compiles.
* nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
(struct output_fns print_symbol_info): Ditto.
(long_options, usage, main): Add -C --demangle option.
(print_symname): New function, demangling if requested.
(print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
Diffstat (limited to 'binutils/nm.1')
-rw-r--r-- | binutils/nm.1 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binutils/nm.1 b/binutils/nm.1 index e62586b..0840799 100644 --- a/binutils/nm.1 +++ b/binutils/nm.1 @@ -17,6 +17,8 @@ nm\(em\&list symbols from object files. .B nm .RB "[\|" \-a | \-\-debug\-syms "\|]" .RB "[\|" \-g | \-\-extern\-only "\|]" +.RB "[\|" \-B "\|]" +.RB "[\|" \-C | \-\-demangle "\|]" .RB "[\|" \-s | \-\-print\-armap "\|]" .RB "[\|" \-o | \-\-print\-file\-name "\|]" .RB "[\|" \-n | \-\-numeric\-sort "\|]" @@ -72,6 +74,14 @@ The same as (for compatibility with the MIPS \fBnm\fP). .TP +.B \-C +.TP +.B \-\-demangle +Decode (\fIdemangle\fP) low-level symbol names into user-level names. +Besides removing any initial underscore prepended by the system, this +makes C++ function names readable. + +.TP .B "\-f \fIformat" Use the output format \fIformat\fP, which can be ``bsd'', ``sysv'', or ``posix''. The default is `bsd''. |