From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26461 invoked by alias); 5 Oct 2010 20:01:36 -0000 Received: (qmail 26445 invoked by uid 22791); 5 Oct 2010 20:01:35 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Oct 2010 20:01:31 +0000 Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o95K1SIE002663 for ; Tue, 5 Oct 2010 13:01:28 -0700 Received: from eyh5 (eyh5.prod.google.com [10.208.8.5]) by hpaq6.eem.corp.google.com with ESMTP id o95K1RjR007895 for ; Tue, 5 Oct 2010 13:01:27 -0700 Received: by eyh5 with SMTP id 5so3709308eyh.14 for ; Tue, 05 Oct 2010 13:01:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.31.134 with SMTP id y6mr8835794ebc.82.1286308886922; Tue, 05 Oct 2010 13:01:26 -0700 (PDT) Received: by 10.220.83.79 with HTTP; Tue, 5 Oct 2010 13:01:26 -0700 (PDT) In-Reply-To: <20101005191727.GA13182@caradoc.them.org> References: <20101005042827.9640724619A@ruffy.mtv.corp.google.com> <20101005191727.GA13182@caradoc.them.org> Date: Tue, 05 Oct 2010 20:01:00 -0000 Message-ID: Subject: Re: [commit] cc-with-index.sh From: Doug Evans To: tromey@redhat.com, gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes 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 X-SW-Source: 2010-10/txt/msg00054.txt.bz2 On Tue, Oct 5, 2010 at 12:17 PM, Daniel Jacobowitz w= rote: > On Mon, Oct 04, 2010 at 09:28:27PM -0700, Doug Evans wrote: >> I need a way to run the testsuite with index files, >> so I wrote this script to help. >> >> Tom, feel free to replace it with something else. >> >> 2010-10-04 =A0Doug Evans =A0 >> >> =A0 =A0 =A0 * cc-with-index.sh: New file. > > Wouldn't it be easier to do this in gdb_compile? =A0There you've got > most of the information your script has to steal from the command > line. Sure, one *could* do it that way, and it does solve the problem of knowing when one is doing a link. But cc-with-index.sh gives me something I can trivially invoke by hand too, even easier than gdb-add-index.sh. And to run the testsuite with the index I'm going to have to pass some extra parameter to runtest, and it feels more intuitive to provide a special CC_WITH_TARGET.