* objdump.c (prefix_addresses): New static variable.
authorIan Lance Taylor <ian@airs.com>
Thu, 24 Oct 1996 21:21:17 +0000 (21:21 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 24 Oct 1996 21:21:17 +0000 (21:21 +0000)
commit4cb99ff2a19b9c1ad46106872a4888ede341d5d4
tree784cad27388df371624f169db1aa2e957ac23067
parentf009978996aa1c65934b0960953f4cb65b7ac905
* 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.
binutils/binutils.texi
binutils/objdump.1