aboutsummaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-15 21:50:56 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-15 21:50:56 +0000
commit9793039fc664ac2487539ad7fa4df8d72d96fc2e (patch)
treec2040c53e970d69ccff64ced94c79f24955aabe7 /binutils/binutils.texi
parent5c59269f50bd672ce7f342a7cb1dcdf3fb60029f (diff)
downloadfsf-binutils-gdb-9793039fc664ac2487539ad7fa4df8d72d96fc2e.zip
fsf-binutils-gdb-9793039fc664ac2487539ad7fa4df8d72d96fc2e.tar.gz
fsf-binutils-gdb-9793039fc664ac2487539ad7fa4df8d72d96fc2e.tar.bz2
Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
* objdump.c: Include "demangle.h". (do_demangle): New static variable. (usage): Mention -C/--demangle. (long_options): Add "demangle". (objdump_print_symname): New static function. (objdump_print_addr_with_sym): Use objdump_print_symname. (disassemble_bytes): Likewise. (dump_reloc_set): Likewise. (dump_symbols): Demangle symbol name. (main): Handle -C. * binutils.texi, objdump.1: Document -C/--demangle.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r--binutils/binutils.texi14
1 files changed, 11 insertions, 3 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index b4efc88..7b7c8c6 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -693,7 +693,7 @@ The same as @samp{--format=bsd} (for compatibility with the MIPS @code{nm}).
@item -C
@itemx --demangle
-@cindex demangling C++ symbols
+@cindex demangling in nm
Decode (@dfn{demangle}) low-level symbol names into user-level names.
Besides removing any initial underscore prepended by the system, this
makes C++ function names readable. @xref{c++filt}, for more information
@@ -1037,8 +1037,8 @@ Show a summary of the options to @code{objcopy}.
@smallexample
objdump [ -a | --archive-headers ]
[ -b @var{bfdname} | --target=@var{bfdname} ] [ --debugging ]
- [ -d | --disassemble ] [ -D | --disassemble-all ]
- [ --disassemble-zeroes ]
+ [ -C | --demangle ] [ -d | --disassemble ]
+ [ -D | --disassemble-all ] [ --disassemble-zeroes ]
[ -EB | -EL | --endian=@{big | little @} ]
[ -f | --file-headers ]
[ -h | --section-headers | --headers ] [ -i | --info ]
@@ -1105,6 +1105,14 @@ file in the format produced by Oasys compilers. You can list the
formats available with the @samp{-i} option.
@xref{Target Selection}, for more information.
+@item -C
+@itemx --demangle
+@cindex demangling in objdump
+Decode (@dfn{demangle}) low-level symbol names into user-level names.
+Besides removing any initial underscore prepended by the system, this
+makes C++ function names readable. @xref{c++filt}, for more information
+on demangling.
+
@item --debugging
Display debugging information. This attempts to parse debugging
information stored in the file and print it out using a C like syntax.