From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id q79LE8wUj1+mcgAAWB0awg (envelope-from ) for ; Tue, 20 Oct 2020 12:48:12 -0400 Received: by simark.ca (Postfix, from userid 112) id 4392F1EFC1; Tue, 20 Oct 2020 12:48:12 -0400 (EDT) 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 962891E58E for ; Tue, 20 Oct 2020 12:48:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 10E3E394847E; Tue, 20 Oct 2020 16:48:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10E3E394847E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1603212491; bh=s2SU6gJuB0NQDTF7JL7ttx4yj3lw+JVbZwmx82EaHV8=; 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=MI26vAnQqS4Md4gI/rm1i2ru/ci0YRb0rkXRNqqfGu8Y+WUNlrApuwakwyStUDc8P ONu8hj4V+2Q9ACPHR5oOGVgCTMsVyPbmK4P7+QBqQHIVmyXCQJj95w/zd+Ryu6q0Yk r1lIAz0mH5vYdihKjgygmYq8TQHdhA4lLiH93yHY= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id B5496385703C for ; Tue, 20 Oct 2020 16:48:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B5496385703C 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 09KGm3EY031855 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Oct 2020 12:48:07 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 09KGm3EY031855 Received: from [10.0.0.11] (173-246-6-90.qc.cable.ebox.net [173.246.6.90]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id DCB3C1E58E; Tue, 20 Oct 2020 12:48:02 -0400 (EDT) Subject: Re: [PATCH] gdb/dwarf: fix reading subprogram with DW_AT_specification (PR gdb/26693) To: Tom de Vries , gdb-patches@sourceware.org References: <20201013141849.24640-1-simon.marchi@polymtl.ca> <4613bd56-8d18-0c60-40dd-878f2a6765be@polymtl.ca> Message-ID: Date: Tue, 20 Oct 2020 12:48:02 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Tue, 20 Oct 2020 16:48:03 +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" On 2020-10-20 12:29 p.m., Tom de Vries wrote: > Consider using: > ... > standard_testfile main.c .S > ... > and dropping gdb.dwarf2/template-specification-full-name.c. Done. > I applied the patch on trunk and ran the tests, and ran into: > ... > (gdb) print apply^M > Cannot access memory at address 0x1234^M > (gdb) FAIL: gdb.dwarf2/template-specification-full-name.exp: print > apply > ... > > So I guess we'll have to fix the hardcoded high/low. Ok, I can reproduce if I produce a non-PIE (with the nopie compile option). > Using this instead works for me, in combination with using main.c > (otherwise the main_label is missing): > ... > {MACRO_AT_range {main}} > ... Thanks, I'll use that. Simon