freebsd-skq/contrib/elftoolchain/libdwarf
Mark Johnston 2ef476c9a2 Follow DW_AT_specification when looking up DW_AT_type attributes.
dwarf_attrval_*() will search the parent DIE referenced by a
DW_AT_abstract_origin attribute for the value of the DW_AT_type attribute.
Do the same thing for the DW_AT_specification attributes in variable
definitions emitted by GCC 6.2, and ensure that we return an error rather
than crashing if neither DW_AT_abstract_origin or DW_AT_specification is
found when looking for the value of the DW_AT_type attribute.

PR:		215350, 215395
Reviewed by:	emaste
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D8920
2016-12-28 21:54:33 +00:00
..
_libdwarf.h Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
dwarf_abbrev.c
dwarf_add_arange.3
dwarf_add_AT_comp_dir.3
dwarf_add_AT_const_value_string.3
dwarf_add_AT_dataref.3
dwarf_add_AT_flag.3
dwarf_add_AT_location_expr.3
dwarf_add_AT_name.3
dwarf_add_AT_producer.3
dwarf_add_AT_ref_address.3
dwarf_add_AT_reference.3
dwarf_add_AT_signed_const.3
dwarf_add_AT_string.3
dwarf_add_AT_targ_address.3
dwarf_add_die_to_debug.3
dwarf_add_directory_decl.3
dwarf_add_expr_addr.3
dwarf_add_expr_gen.3
dwarf_add_fde_inst.3
dwarf_add_file_decl.3
dwarf_add_frame_cie.3
dwarf_add_frame_fde.3
dwarf_add_funcname.3
dwarf_add_line_entry.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_add_pubname.3
dwarf_add_typename.3
dwarf_add_varname.3
dwarf_add_weakname.3
dwarf_arange.c
dwarf_attr.3 Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_attr.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_attrlist.3
dwarf_attroffset.3 Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_attrval_signed.3 Follow DW_AT_specification when looking up DW_AT_type attributes. 2016-12-28 21:54:33 +00:00
dwarf_attrval.c Follow DW_AT_specification when looking up DW_AT_type attributes. 2016-12-28 21:54:33 +00:00
dwarf_child.3 Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_cu.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_dealloc.3
dwarf_dealloc.c
dwarf_def_macro.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_die_abbrev_code.3
dwarf_die_link.3
dwarf_die.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_diename.3
dwarf_dieoffset.3 Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_dump.c libdwarf: Add definitions for Apple's DWARF extension attributes. 2016-09-20 00:22:35 +00:00
dwarf_end_macro_file.3
dwarf_errmsg.3
dwarf_errmsg.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_errno.3
dwarf_expand_frame_instructions.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_expr_current_offset.3
dwarf_expr_into_block.3
dwarf_fde_cfa_offset.3
dwarf_find_macro_value_start.3
dwarf_finish.3
dwarf_finish.c
dwarf_form.c
dwarf_formaddr.3
dwarf_formblock.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_formexprloc.3
dwarf_formflag.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_formref.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_formsig8.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_formstring.3
dwarf_formudata.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_frame.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_funcs.m4
dwarf_get_abbrev_children_flag.3
dwarf_get_abbrev_code.3
dwarf_get_abbrev_entry.3
dwarf_get_abbrev_tag.3
dwarf_get_abbrev.3
dwarf_get_address_size.3
dwarf_get_arange_info.3 Update elftoolchain to upstream revision 3163 2015-02-17 15:19:58 +00:00
dwarf_get_arange.3
dwarf_get_aranges.3
dwarf_get_AT_name.3 Update elftoolchain to upstream revision 3163 2015-02-17 15:19:58 +00:00
dwarf_get_cie_index.3
dwarf_get_cie_info.3
dwarf_get_cie_of_fde.3
dwarf_get_cu_die_offset.3
dwarf_get_die_infotypes_flag.3 Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_get_elf.3
dwarf_get_fde_at_pc.3
dwarf_get_fde_info_for_all_regs3.3
dwarf_get_fde_info_for_all_regs.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_get_fde_info_for_cfa_reg3.3
dwarf_get_fde_info_for_reg3.3
dwarf_get_fde_info_for_reg.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_get_fde_instr_bytes.3
dwarf_get_fde_list.3
dwarf_get_fde_n.3
dwarf_get_fde_range.3
dwarf_get_form_class.3
dwarf_get_funcs.3
dwarf_get_globals.3
dwarf_get_loclist_entry.3
dwarf_get_macro_details.3
dwarf_get_pubtypes.3
dwarf_get_ranges.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_get_relocation_info_count.3
dwarf_get_relocation_info.3
dwarf_get_section_bytes.3
dwarf_get_section_max_offsets.3 Update elftoolchain to upstream revision 3163 2015-02-17 15:19:58 +00:00
dwarf_get_str.3
dwarf_get_types.3
dwarf_get_vars.3
dwarf_get_weaks.3
dwarf_hasattr.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_hasform.3
dwarf_highpc.3 Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_init.3
dwarf_init.c
dwarf_lineno.3
dwarf_lineno.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_lne_end_sequence.3
dwarf_lne_set_address.3
dwarf_loclist_from_expr.3 Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_loclist.3
dwarf_loclist.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_macinfo.c
dwarf_nametbl.m4
dwarf_new_die.3
dwarf_new_expr.3
dwarf_new_fde.3
dwarf_next_cu_header.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_next_types_section.3 Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_object_init.3
dwarf_pro_arange.c
dwarf_pro_attr.c
dwarf_pro_die.c
dwarf_pro_expr.c
dwarf_pro_finish.c
dwarf_pro_frame.c
dwarf_pro_funcs.m4
dwarf_pro_init.c
dwarf_pro_lineno.c
dwarf_pro_macinfo.c
dwarf_pro_nametbl.m4
dwarf_pro_pubnames.m4
dwarf_pro_reloc.c
dwarf_pro_sections.c
dwarf_pro_types.m4
dwarf_pro_vars.m4
dwarf_pro_weaks.m4
dwarf_producer_init.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf_producer_set_isa.3
dwarf_pubnames.m4
dwarf_pubtypes.m4
dwarf_ranges.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
dwarf_reloc.c Update elftoolchain to upstream revision 3163 2015-02-17 15:19:58 +00:00
dwarf_reset_section_bytes.3
dwarf_sections.c Update to ELF Tool Chain r3250 2015-10-09 17:46:05 +00:00
dwarf_set_frame_cfa_value.3
dwarf_set_reloc_application.3 Update elftoolchain to upstream revision 3163 2015-02-17 15:19:58 +00:00
dwarf_seterrarg.3
dwarf_seterror.c
dwarf_srcfiles.3
dwarf_srclines.3
dwarf_start_macro_file.3
dwarf_str.c Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
dwarf_tag.3
dwarf_transform_to_disk_form.3
dwarf_types.m4
dwarf_undef_macro.3
dwarf_vars.m4
dwarf_vendor_ext.3
dwarf_weaks.m4
dwarf_whatattr.3 Update to ELF Tool Chain r3197 2015-05-14 19:48:15 +00:00
dwarf.3 Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
dwarf.h libdwarf: Add definitions for Apple's DWARF extension attributes. 2016-09-20 00:22:35 +00:00
libdwarf_abbrev.c Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
libdwarf_arange.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libdwarf_attr.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libdwarf_die.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libdwarf_elf_access.c
libdwarf_elf_init.c Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
libdwarf_error.c
libdwarf_frame.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libdwarf_info.c Update elftoolchain to upstream rev 3136 2014-12-30 03:25:42 +00:00
libdwarf_init.c Update elftoolchain to upstream rev 3136 2014-12-30 03:25:42 +00:00
libdwarf_lineno.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
libdwarf_loc.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libdwarf_loclist.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libdwarf_macinfo.c
libdwarf_nametbl.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libdwarf_ranges.c
libdwarf_reloc.c Use the in-tree sys/elf_common.h to build libelftc. 2016-06-05 23:05:14 +00:00
libdwarf_rw.c Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
libdwarf_sections.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libdwarf_str.c
libdwarf.c Update elftoolchain to upstream revision 3163 2015-02-17 15:19:58 +00:00
libdwarf.h Add relocation support for RISC-V. 2016-05-25 11:58:55 +00:00
Makefile Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
os.NetBSD.mk Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
Version.map Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00