diff options
author | Nick Clifton <nickc@redhat.com> | 2019-02-25 12:15:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-02-25 12:15:41 +0000 |
commit | 39f0547e554df96608dd041d2a7b3c72882fd515 (patch) | |
tree | 53ca1f928e75345d1a9e3a409ef95ef9a2175304 /binutils/doc | |
parent | 60245a92ce2c16d0b43987c2442b1a125652b832 (diff) | |
download | gdb-39f0547e554df96608dd041d2a7b3c72882fd515.zip gdb-39f0547e554df96608dd041d2a7b3c72882fd515.tar.gz gdb-39f0547e554df96608dd041d2a7b3c72882fd515.tar.bz2 |
Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file.
* objdump.c (sym_ok): New function.
(find_symbol_for_address): Use new function.
(disassemble_section): Compare sections by name, not pointer.
(dump_dwarf): Move code to initialise byte_get pointer and iterate
over separate debug files from here to ...
(dump_bfd): ... here. Add parameter indicating that a separate
debug info file is being dumped. For main file, pull in the
symbol tables from all separate debug info files.
(display_object): Update call to dump_bfd.
* doc/binutils.texi: Document extened behaviour of the
--dwarf=follow-links option.
* NEWS: Mention this new feature.
* testsuite/binutils-all/objdump.WK2: Update expected output.
* testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
options and dump file parameters.
Add extra test.
* testsuite/binutils-all/objdump.WK3: New file.
* testsuite/binutils-all/readelf.exp: Change expected output for
readelf -wKis test.
* testsuite/binutils-all/readelf.wKis: New file.
Diffstat (limited to 'binutils/doc')
-rw-r--r-- | binutils/doc/binutils.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index 01f1e5f..eb5c3e8 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -2236,6 +2236,10 @@ will stop at the end of the function, otherwise it will stop when the next symbol is encountered. If there are no matches for @var{symbol} then nothing will be displayed. +Note if the @option{--dwarf=follow-links} option has also been enabled +then any symbol tables in linked debug info files will be read in and +used when disassembling. + @item -D @itemx --disassemble-all Like @option{-d}, but disassemble the contents of all sections, not just @@ -2254,6 +2258,10 @@ If the target is an ARM architecture this switch also has the effect of forcing the disassembler to decode pieces of data found in code sections as if they were instructions. +Note if the @option{--dwarf=follow-links} option has also been enabled +then any symbol tables in linked debug info files will be read in and +used when disassembling. + @item --prefix-addresses When disassembling, print the complete address on each line. This is the older disassembly format. |