Commit: BFD: Add support for parsing DWZ alternate debug info files
Nick Clifton
nickc@redhat.com
Wed May 29 14:57:00 GMT 2013
Hi Guys,
I am applying the attached patch to add support into the BFD library
for processing the DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt DWARF
attributes produced by the DWZ compressor. This patch also includes a
new exported function - bfd_follow_gnu_debugaltlink - which can be
used to locate an alternate debuginfo file based on the contents of a
.gnu_debugaltlink section.
Cheers
Nick
bfd/ChangeLog
2013-05-29 Nick Clifton <nickc@redhat.com>
* dwarf2.c (struct dwarf2_debug): Add fields for handling
alternate debug info source.
(dwarf_debug_sections): Add entries for alternate .debug_str and
.debug_info sections.
(dwarf_debug_section_enum): Likewise.
(read_alt_indirect_string): New function. Handles a
DW_FORM_GNU_strp_alt attribute.
(read_alt_indirect_ref): New function. Handles a
DW_FORM_GNU_ref_alt attribute.
(read_attribute_value): Process DW_FORM_GNU_ref_alt and
DW_FORM_GNU_strp_alt.
(find_abstract_instance_name): Handle DW_FORM_GNU_ref_alt
attributes.
(_bfd_dwarf2_cleanup_debug_info): Free alternate debug info
sources.
* opncls.c (GNU_DEBUGALTLINK): Define.
(bfd_get_alt_debug_link_info): New function.
(separate_alt_debug_file_exists): New function.
(find_separate_debug_file): Add parameters for fetch and check
functions.
(bfd_follow_gnu_debugaltlink): New function.
* bfd-in2.h: Regenerate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd.dwz.patch.xz
Type: application/x-xz
Size: 4212 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130529/2c02d4c7/attachment.xz>
More information about the Binutils
mailing list