diff options
author | Nick Clifton <nickc@redhat.com> | 2008-02-22 09:42:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-02-22 09:42:58 +0000 |
commit | 98ec6e726638cb708f0e818c747883fd840b8d1b (patch) | |
tree | 152c644938eea560f167576d4efa5edc07a4a157 /binutils/doc | |
parent | f736769e93726370a5158d22b8e421b6d0374153 (diff) | |
download | gdb-98ec6e726638cb708f0e818c747883fd840b8d1b.zip gdb-98ec6e726638cb708f0e818c747883fd840b8d1b.tar.gz gdb-98ec6e726638cb708f0e818c747883fd840b8d1b.tar.bz2 |
* objdump.c (display_file_offsets): New variable.
(long_options): Add -F/--file-offsets.
(objdump_print_addr_with_sym): If displaying file offsets, print
the offset of the given address.
(disassemble_bytes): If displaying file offsets, tell the user how
many zeroes are skipped and the file offset of the point where
dumping resumes.
(disassemble_section): Only display the name of the section if
data is going to be dumped from it.
(main): Handle new option. Produce error messages if the start or
stop addresses do not make sense.
* doc/binutils.texi: Document the new feature.
* NEWS: Mention the new feature.
Diffstat (limited to 'binutils/doc')
-rw-r--r-- | binutils/doc/binutils.texi | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index 76d55c3..6c6c73f 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -11,7 +11,7 @@ @copying @c man begin COPYRIGHT Copyright @copyright{} 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 @@ -1572,6 +1572,7 @@ objdump [@option{-a}|@option{--archive-headers}] [@option{-z}|@option{--disassemble-zeroes}] [@option{-EB}|@option{-EL}|@option{--endian=}@{big | little @}] [@option{-f}|@option{--file-headers}] + [@option{-F}|@option{--file-offsets}] [@option{--file-start-context}] [@option{-g}|@option{--debugging}] [@option{-e}|@option{--debugging-tags}] @@ -1715,6 +1716,15 @@ does not describe endianness information, such as S-records. Display summary information from the overall header of each of the @var{objfile} files. +@item -F +@itemx --file-offsets +@cindex object file offsets +When disassembling sections, whenever a symbol is displayed, also +display the file offset of the region of data that is about to be +dumped. If zeroes are being skipped, then when disassembly resumes, +tell the user how many zeroes were skipped and the file offset of the +location from where the disassembly resumes. + @item --file-start-context @cindex source code context Specify that when displaying interlisted source code/disassembly |