From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29820 invoked by alias); 6 Jul 2016 08:11:32 -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 29750 invoked by uid 89); 6 Jul 2016 08:11:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=synthetic, HX-Greylist:Wed 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 06 Jul 2016 08:11:30 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 929C2C05B1D6; Wed, 6 Jul 2016 08:11:29 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-38.ams2.redhat.com [10.36.116.38]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u668BQ2c018524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 6 Jul 2016 04:11:28 -0400 Date: Wed, 06 Jul 2016 08:11:00 -0000 From: Jan Kratochvil To: Yao Qi Cc: "gdb-patches@sourceware.org" Subject: Re: [testsuite patch] [ppc64] +kfail: gdb_target_symbol does not support function descriptors Message-ID: <20160706081122.GA19754@host1.jankratochvil.net> References: <20160705145454.GA26978@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00086.txt.bz2 On Wed, 06 Jul 2016 09:51:15 +0200, Yao Qi wrote: > If we hack gdb.dwarf2/dw2-bad-mips-linkage-name.exp like this, "f" -> ".f", > and "g" -> ".g", OK, I didn't realize that the ".dotted" synthetic symbols can be used even in as/ld, not just inside GDB. > The right fix would be teaching proc gdb_target_symbol to add > prefix "." to symbol if target is powerpc64 and abi is ELFv1, in which function > descriptor is used. Now the question is how to detect that. I used "powerpc64-*linux*" target match in my patch but I guess that is not right. Maybe it could compile first something and check if ".somesymbol" exists. Thanks, Jan