* objdump.c (objdump_print_value): Add skip_zeroes parameter.

Change all callers.
	(objdump_print_addr_with_sym): Likewise.  Call objdump_print_value
	to print address.
	(objdump_print_addr): New static function.
	(objdump_print_address): Just call objdump_print_addr.
	(disassemble_bytes): Print real address, not function offset.
	Skip a certain number of leading zeroes.

	* objdump.c (disassemble_zeroes): New static variable.
	(usage): Mention --disassemble-zeroes.
	(long_options): Add "disassemble-zeroes".
	(disassemble_bytes): Check disassemble_zeroes.
Changes requested by LSI.
This commit is contained in:
Ian Lance Taylor
1997-01-29 18:58:04 +00:00
parent 7e2b3363f1
commit 51b8c41677
4 changed files with 123 additions and 40 deletions

View File

@@ -1038,6 +1038,7 @@ Show a summary of the options to @code{objcopy}.
objdump [ -a | --archive-headers ]
[ -b @var{bfdname} | --target=@var{bfdname} ] [ --debugging ]
[ -d | --disassemble ] [ -D | --disassemble-all ]
[ --disassemble-zeroes ]
[ -EB | -EL | --endian=@{big | little @} ]
[ -f | --file-headers ]
[ -h | --section-headers | --headers ] [ -i | --info ]
@@ -1112,6 +1113,15 @@ expected to contain instructions.
Like @samp{-d}, but disassemble the contents of all sections, not just
those expected to contain instructions.
@item --prefix-addresses
When disassembling, print the complete address on each line. This is
the older disassembly format.
@item --disassemble-zeroes
Normally the disassembly output will skip blocks of zeroes. This
option directs the disassembler to disassemble those blocks, just like
any other data.
@item -EB
@itemx -EL
@itemx --endian=@{big|little@}
@@ -1174,10 +1184,6 @@ 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