From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50180 invoked by alias); 6 Nov 2015 13:25:22 -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 50170 invoked by uid 89); 6 Nov 2015 13:25:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,KAM_STOCKGEN,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 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; Fri, 06 Nov 2015 13:25:21 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 297C98E4E2 for ; Fri, 6 Nov 2015 13:25:20 +0000 (UTC) Received: from pinnacle.lan (ovpn-113-161.phx2.redhat.com [10.3.113.161]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tA6DPJbZ032462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA256 bits=256 verify=NO) for ; Fri, 6 Nov 2015 08:25:20 -0500 Date: Fri, 06 Nov 2015 13:25:00 -0000 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: Re: [PATCH] testsuite: Define and use gdb_target_symbol_prefix_flags_asm Message-ID: <20151106062518.60bb68b8@pinnacle.lan> In-Reply-To: <563C761D.9070401@redhat.com> References: <20151105222822.2f41149f@pinnacle.lan> <563C761D.9070401@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00197.txt.bz2 On Fri, 06 Nov 2015 09:42:53 +0000 Pedro Alves wrote: > On 11/06/2015 05:28 AM, Kevin Buettner wrote: > > > +proc gdb_target_symbol_prefix_flags {} { > > + set flags [gdb_target_symbol_prefix_flags_asm] > > + regsub {(DSYMBOL_PREFIX=)(.*)$} $flags {\1"\2"} flags > > + return flags > > Hmm, I think it'd end up simpler/less magic to remove the > indirection through gdb_target_symbol_prefix_flags_asm after all. > It's about the same number of worker lines, but no magic regex. > Like: > > proc gdb_target_symbol_prefix_flags_asm {} { > set prefix [gdb_target_symbol_prefix] > if {$prefix ne ""} { > return "additional_flags=-DSYMBOL_PREFIX=\"$prefix\"" > } > return "" > } > > WDYT? I think you're right. I'll make that change later on today and then push it. Thanks again for your help with this. Kevin