* objdump.c (start_address): New variable.

(stop_address): New variable.
	(usage): Mention --start-address and --stop-address.
	(OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
	(long_options): Add "start-address" and "stop-address".
	(disassemble_data): Handle start_address and stop_address.
	(dump_data, dump_reloc_set): Likewise.
	(main): Don't set seenflag for -l.  Handle OPTION_START_ADDRESS
	and OPTION_STOP_ADDRESS.
	* objcopy.c (parse_vma): Move to bucomm.c.
	* bucomm.c (parse_vma): New function, moved in from objcopy.c.
	* bucomm.h (parse_vma): Declare.
	* binutils.texi, objdump.1: Document new objdump options.
PR 7983.
This commit is contained in:
Ian Lance Taylor
1995-09-13 22:38:55 +00:00
parent 771e0a5cb0
commit aa21a2a9ec
4 changed files with 122 additions and 9 deletions

View File

@@ -959,7 +959,9 @@ objdump [ -a | --archive-headers ]
[ -r | --reloc ] [ -R | --dynamic-reloc ]
[ -s | --full-contents ] [ --stabs ]
[ -t | --syms ] [ -T | --dynamic-syms ] [ -x | --all-headers ]
[ -w | --wide ] [ --version ] [ --help ] @var{objfile}@dots{}
[ -w | --wide ] [ --start-address=@var{address} ]
[ --stop-address=@var{address} ] [ --version ] [ --help ]
@var{objfile}@dots{}
@end smallexample
@code{objdump} displays information about one or more object files.
@@ -1106,6 +1108,16 @@ section. In most other file formats, debugging symbol-table entries are
interleaved with linkage symbols, and are visible in the @samp{--syms}
output.
@item --start-address=@var{address}
@cindex start-address
Start displaying data at the specified address. This affects the output
of the @code{-d}, @code{-r} and @code{-s} options.
@item --stop-address=@var{address}
@cindex stop-address
Stop displaying data at the specified address. This affects the output
of the @code{-d}, @code{-r} and @code{-s} options.
@item -t
@itemx --syms
@cindex symbol table entries, printing