diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-10-24 21:21:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-10-24 21:21:17 +0000 |
commit | 4cb99ff2a19b9c1ad46106872a4888ede341d5d4 (patch) | |
tree | 784cad27388df371624f169db1aa2e957ac23067 /binutils/binutils.texi | |
parent | f009978996aa1c65934b0960953f4cb65b7ac905 (diff) | |
download | gdb-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/binutils.texi')
-rw-r--r-- | binutils/binutils.texi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi index a1b6335..07f3414 100644 --- a/binutils/binutils.texi +++ b/binutils/binutils.texi @@ -1040,7 +1040,8 @@ objdump [ -a | --archive-headers ] [ -s | --full-contents ] [ --stabs ] [ -t | --syms ] [ -T | --dynamic-syms ] [ -x | --all-headers ] [ -w | --wide ] [ --start-address=@var{address} ] - [ --stop-address=@var{address} ] [ --show-raw-insn ] + [ --stop-address=@var{address} ] + [ --prefix-addresses] [ --show-raw-insn ] [ --version ] [ --help ] @var{objfile}@dots{} @end smallexample @@ -1165,6 +1166,10 @@ 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 @samp{-i} option. +@item --prefix-addresses +When disassembling, print the complete address on each line. This is +the older disassembly format. + @item -r @itemx --reloc @cindex relocation entries, in object file @@ -1194,7 +1199,8 @@ Display source code intermixed with disassembly, if possible. Implies @item --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 +@code{--prefix-addresses} is used. @item --stabs @cindex stab |