* dwarf2.c (struct dwarf2_debug): Add fields for handling
authorNick Clifton <nickc@redhat.com>
Wed, 29 May 2013 14:58:35 +0000 (14:58 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 29 May 2013 14:58:35 +0000 (14:58 +0000)
commit95e34fb4f43f5cc57c48d4799c5c59d7dcf6c2a2
treee7b5e06c3d8cdef52646bda770679b629d6aac5d
parent28439a30acd9aaafe5d7dc75573b3629533cb873
* 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.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/dwarf2.c
bfd/opncls.c