diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-03-15 21:50:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-03-15 21:50:56 +0000 |
commit | 9793039fc664ac2487539ad7fa4df8d72d96fc2e (patch) | |
tree | c2040c53e970d69ccff64ced94c79f24955aabe7 /binutils/objdump.1 | |
parent | 5c59269f50bd672ce7f342a7cb1dcdf3fb60029f (diff) | |
download | gdb-9793039fc664ac2487539ad7fa4df8d72d96fc2e.zip gdb-9793039fc664ac2487539ad7fa4df8d72d96fc2e.tar.gz 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/objdump.1')
-rw-r--r-- | binutils/objdump.1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/objdump.1 b/binutils/objdump.1 index c331d3e..6c15531 100644 --- a/binutils/objdump.1 +++ b/binutils/objdump.1 @@ -21,6 +21,7 @@ objdump \- display information from object files. .RB " | " "\-\-target="\c .I bfdname\c \&\|] +.RB "[\|" \-C | \-\-demangle "\|]" .RB "[\|" \-\-debugging "\|]" .RB "[\|" \-d | \-\-disassemble "\|]" .RB "[\|" \-D | \-\-disassemble-all "\|]" @@ -145,6 +146,14 @@ formats available with the `\|\c \|' option. .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 \-\-debugging Display debugging information. This attempts to parse debugging information stored in the file and print it out using a C like syntax. |