From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12219 invoked by alias); 20 Feb 2017 20:07:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 12207 invoked by uid 89); 20 Feb 2017 20:07:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,TRACKER_ID autolearn=no version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Feb 2017 20:07:52 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1A2247E9E5; Mon, 20 Feb 2017 20:07:53 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-221.ams2.redhat.com [10.36.116.221]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1KK7ntQ021165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 20 Feb 2017 15:07:52 -0500 Date: Mon, 20 Feb 2017 20:07:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org, Victor Leschuk Subject: [commit] [PATCH 5/8] DWARF-5 basic functionality Message-ID: <20170220200748.GD24098@host1.jankratochvil.net> References: <148693097396.9024.2288256732840761882.stgit@host1.jankratochvil.net> <148693100178.9024.12379587332727380536.stgit@host1.jankratochvil.net> <18b01458-037f-d871-8195-19731a35d38e@redhat.com> <20170219212630.GC1291@host1.jankratochvil.net> <20170220195229.GA13688@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170220195229.GA13688@host1.jankratochvil.net> User-Agent: Mutt/1.7.1 (2016-10-04) X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00551.txt.bz2 On Mon, 20 Feb 2017 20:52:29 +0100, Jan Kratochvil wrote: > gdb/ChangeLog > 2017-02-11 Jan Kratochvil > > * defs.h (read_unsigned_leb128): New declaration. > * dwarf2loc.c (decode_debug_loclists_addresses): New function. > (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. > (dwarf2_find_location_expression): Call also > decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. > * dwarf2loc.h (dwarf2_version): New declaration. > * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, > rnglists. > (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, > .debug_rnglists. > (struct dwop_section_names): Add loclists_dwo. > (dwop_section_names): Add .debug_loclists.dwo. > (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. > (struct dwarf2_per_cu_data): Add dwarf_version. > (struct dwo_sections): Add loclists. > (struct attr_abbrev): Add implicit_const. > (read_indirect_line_string): New declaration. > (read_unsigned_leb128): Delete declaration. > (rcuh_kind): New definition. > (read_and_check_comp_unit_head): Change parameter > is_debug_types_section to section_kind. > (dwarf2_locate_sections): Handle loclists, line_str and rnglists. > (read_comp_unit_head): Change parameter abfd to section, add parameter > section_kind. Handle DWARF-5. > (error_check_comp_unit_head): Accept also DWARF version 5. > (read_and_check_comp_unit_head): Change parameter > is_debug_types_section to section_kind. > (read_and_check_type_unit_head): Delete function. > (read_abbrev_offset): Handle DWARF-5. > (create_debug_type_hash_table): Add parameter section_kind. Process > only DW_UT_type. Use signature and type_offset_in_tu from struct > comp_unit_head. > (create_debug_types_hash_table): Update create_debug_type_hash_table > caller. > (create_all_type_units): Call create_debug_type_hash_table. > (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change > read_and_check_type_unit_head caller to read_and_check_comp_unit_head > caller. > (skip_one_die): Handle DW_FORM_implicit_const. > (dwarf2_rnglists_process): New function. > (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. > (abbrev_table_read_table): Handle DW_FORM_implicit_const. > (read_attribute_value): Handle DW_FORM_implicit_const, > DW_FORM_line_strp. > (read_attribute): Handle DW_FORM_implicit_const. > (read_indirect_string_at_offset_from): New function from > read_indirect_string_at_offset. > (read_indirect_string_at_offset): Call > read_indirect_string_at_offset_from. > (read_indirect_line_string_at_offset): New function. > (read_indirect_string): New function comment. > (read_indirect_line_string): New function. > (read_unsigned_leb128): Make it global. > (dwarf2_string_attr): Handle DWARF-5. > (add_include_dir_stub, read_formatted_entries): New functions. > (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): > Handle DWARF-5. > (per_cu_header_read_in): Update read_comp_unit_head caller. > (dwarf2_version): New function. > * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and > rnglists. > * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections > fields. > > gdb/testsuite/ChangeLog > * gdb.dwarf2/dw2-error.exp (file $testfile): Update expected string. 43988095a5a4c53e6d5b00a6335454919c4fac55 Jan