From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AIQqHw9zGWBcLwAAWB0awg (envelope-from ) for ; Tue, 02 Feb 2021 10:43:11 -0500 Received: by simark.ca (Postfix, from userid 112) id 7D33F1EF80; Tue, 2 Feb 2021 10:43:11 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 945321E590 for ; Tue, 2 Feb 2021 10:43:10 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 53059398B17A; Tue, 2 Feb 2021 15:43:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53059398B17A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1612280590; bh=vY2LvTmRpbOXTChxDlRnwxylu8UFjNWRCAqUk4lbG+0=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=kLuBOjnkfILbus/IMXMokTWVlr3WPd5lnCxCjeFxvFkLAGiMkJGri+ayxxCd4RWPe 0gbwVbl0J/Qz0zfQa2mC5m9UYOt2o6cKNGpM3sA1CGfhKY8Frb9KRfOjIw3x0zLTEv OaQ9q8E+Mfpe4gmnJSNNVyFDzHeYEYanvnLBdvJk= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 54708398883D for ; Tue, 2 Feb 2021 15:43:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 54708398883D Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 112Fh0Hv001845 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 2 Feb 2021 10:43:05 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 112Fh0Hv001845 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 7C07D1E590; Tue, 2 Feb 2021 10:43:00 -0500 (EST) Subject: Re: [PATCH 00/13] DWARF 5 rnglists & loclists fixes (PR 26813) To: gdb-patches@sourceware.org References: <20210120053925.142862-1-simon.marchi@polymtl.ca> Message-ID: Date: Tue, 2 Feb 2021 10:43:00 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210120053925.142862-1-simon.marchi@polymtl.ca> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Tue, 2 Feb 2021 15:43:01 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" I pushed this series. Simon On 2021-01-20 12:39 a.m., Simon Marchi wrote: > This series fixes a few issues related to rnglists and loclists, > prompted by PR 26813: > > https://sourceware.org/bugzilla/show_bug.cgi?id=26813 > > Simon Marchi (13): > gdb/dwarf: change read_loclist_index complaints into errors > gdb/dwarf: fix bound check in read_rnglist_index > gdb/dwarf: add missing bound check to read_loclist_index > gdb/dwarf: remove unnecessary check in read_{rng,loc}list_index > gdb/dwarf: few fixes for handling DW_FORM_{rng,loc}listx > gdb/dwarf: read correct rnglist/loclist header in > read_{rng,loc}list_index > gdb/dwarf: read DW_AT_ranges value as unsigned in > partial_die_info::read > gdb/testsuite: add .debug_rnglists tests > gdb/testsuite: DWARF assembler: add context parameters to _location > gdb/testsuite: add .debug_loclists tests > gdb/dwarf: split dwarf2_cu::ranges_base in two > gdb/dwarf: make read_{loc,rng}list_index return sect_offset > gdb/testsuite: add test for .debug_{rng,loc}lists section without > offset array > > gdb/dwarf2/attribute.c | 5 +- > gdb/dwarf2/attribute.h | 1 + > gdb/dwarf2/die.h | 36 +- > gdb/dwarf2/read.c | 257 ++++++---- > .../gdb.dwarf2/loclists-multiple-cus.c | 37 ++ > .../gdb.dwarf2/loclists-multiple-cus.exp | 146 ++++++ > .../gdb.dwarf2/loclists-sec-offset.c | 69 +++ > .../gdb.dwarf2/loclists-sec-offset.exp | 261 ++++++++++ > .../gdb.dwarf2/rnglists-multiple-cus.exp | 102 ++++ > .../gdb.dwarf2/rnglists-sec-offset.exp | 143 ++++++ > gdb/testsuite/lib/dwarf.exp | 451 +++++++++++++++++- > 11 files changed, 1381 insertions(+), 127 deletions(-) > create mode 100644 gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.c > create mode 100644 gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp > create mode 100644 gdb/testsuite/gdb.dwarf2/loclists-sec-offset.c > create mode 100644 gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp > create mode 100644 gdb/testsuite/gdb.dwarf2/rnglists-multiple-cus.exp > create mode 100644 gdb/testsuite/gdb.dwarf2/rnglists-sec-offset.exp >