From 9793039fc664ac2487539ad7fa4df8d72d96fc2e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 15 Mar 1997 21:50:56 +0000 Subject: Based on patches from Jamie Lokier : * 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. --- binutils/objdump.1 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'binutils/objdump.1') 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. -- cgit v1.1