aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.1
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-24 21:21:17 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-24 21:21:17 +0000
commit4cb99ff2a19b9c1ad46106872a4888ede341d5d4 (patch)
tree784cad27388df371624f169db1aa2e957ac23067 /binutils/objdump.1
parentf009978996aa1c65934b0960953f4cb65b7ac905 (diff)
downloadgdb-4cb99ff2a19b9c1ad46106872a4888ede341d5d4.zip
gdb-4cb99ff2a19b9c1ad46106872a4888ede341d5d4.tar.gz
gdb-4cb99ff2a19b9c1ad46106872a4888ede341d5d4.tar.bz2
* 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.
Diffstat (limited to 'binutils/objdump.1')
-rw-r--r--binutils/objdump.112
1 files changed, 10 insertions, 2 deletions
diff --git a/binutils/objdump.1 b/binutils/objdump.1
index 8e29249..82f9d2b 100644
--- a/binutils/objdump.1
+++ b/binutils/objdump.1
@@ -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 "\|]"
@@ -225,6 +226,11 @@ 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
.B \-\-reloc
@@ -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