Browse Source
* 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.gdb-8.3-branch
13 changed files with 212 additions and 55 deletions
@ -0,0 +1,17 @@ |
|||
#... |
|||
.*debuglink.o: Found separate debug info file:.*linkdebug.debug |
|||
#... |
|||
.*linkdebug.debug:.* |
|||
#... |
|||
.* .debug_abbrev .* |
|||
.* .debug_str .* |
|||
#... |
|||
.*debuglink.o:.* |
|||
#... |
|||
.* .gnu_debuglink .* |
|||
.* .gnu_debugaltlink .* |
|||
.* .debug_str .* |
|||
.* .debug_info .* |
|||
#... |
|||
.* .debug_line .* |
|||
#pass |
|||
@ -0,0 +1,25 @@ |
|||
#... |
|||
.*debuglink.o: Found separate debug info file:.*linkdebug.debug |
|||
#... |
|||
Contents of the .debug_str section \(loaded from .*debuglink.o\): |
|||
|
|||
0x00000000 73747269 6e672d31 00737472 696e672d string-1.string- |
|||
0x00000010 3200 2. |
|||
#... |
|||
Contents of the .debug_info section \(loaded from .*debuglink.o\): |
|||
|
|||
Compilation Unit @ offset 0x0: |
|||
Length: 0x12 \(32-bit\) |
|||
Version: 4 |
|||
Abbrev Offset: 0x0 |
|||
Pointer Size: 4 |
|||
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\) |
|||
<c> DW_AT_name : \(indirect string, offset: 0x0\): string-1 |
|||
<0><10>: Abbrev Number: 2 \(DW_TAG_subprogram\) |
|||
<11> DW_AT_name : \(alt indirect string, offset: 0x0\) string-3 |
|||
#... |
|||
Contents of the .debug_str section \(loaded from .*linkdebug.debug\): |
|||
|
|||
0x00000000 73747269 6e672d33 00737472 696e672d string-3.string- |
|||
0x00000010 3400 4. |
|||
#pass |
|||
Loading…
Reference in new issue