forked from Imagelibrary/binutils-gdb
* objdump.c (prefix_addresses): New static variable.
(long_options): Add "prefix-addresses". (compare_symbols): Sort BSF_FUNCTION symbols before other symbols. (find_symbol_for_address): New static function, broken out of objdump_print_address. (objdump_print_addr_with_sym): New static function, broken out of objdump_print_address. (objdump_print_address): Call new functions. (disassemble_bytes): New static function, broken out of disassemble_data. Change disassembly format, unless prefix_addresses is set. (disassemble_data): Call disassemble_bytes. Unless prefix_addresses is set, disassemble in chunks headed by a symbol. * binutils.texi, objdump.1: Document --prefix-addresses.
This commit is contained in:
@@ -42,6 +42,7 @@ objdump \- display information from object files.
|
||||
.RB " | " "\-\-architecture="\c
|
||||
.I machine\c
|
||||
\&\|]
|
||||
.RB "[\|" \-\-prefix\-addresses "\|]"
|
||||
.RB "[\|" \-r | \-\-reloc "\|]"
|
||||
.RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
|
||||
.RB "[\|" \-s | \-\-full\-contents "\|]"
|
||||
@@ -224,6 +225,11 @@ can be useful when disasembling object files which do not describe
|
||||
architecture information, such as S-records. You can list the available
|
||||
architectures with the \fB\-i\fP option.
|
||||
|
||||
.TP
|
||||
.B \-\-prefix\-addresses
|
||||
When disassembling, print the complete address on each line. This is
|
||||
the older disassembly format.
|
||||
|
||||
.TP
|
||||
.B \-r
|
||||
.TP
|
||||
@@ -254,9 +260,11 @@ Display source code intermixed with disassembly, if possible. Implies
|
||||
\fB-d\fP.
|
||||
|
||||
.TP
|
||||
.B \-\-show-raw-insn
|
||||
.B \-\-show\-raw\-insn
|
||||
When disassembling instructions, print the instruction in hex as well as
|
||||
in symbolic form. Not all targets handle this correctly yet.
|
||||
in symbolic form. This is the default except when
|
||||
.B \-\-prefix\-addresses
|
||||
is used.
|
||||
|
||||
.TP
|
||||
.B \-\-stabs
|
||||
|
||||
Reference in New Issue
Block a user