From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20266 invoked by alias); 9 Jul 2010 05:07:48 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 20240 invoked by uid 22791); 9 Jul 2010 05:07:46 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Fri, 09 Jul 2010 05:07:00 -0000 From: Panu Matilainen To: Roland McGrath cc: Tom Tromey , Project Archer Subject: Re: find-debuginfo.sh change for gdb index In-Reply-To: <20100708225253.3470A4D6C2@magilla.sf.frob.com> Message-ID: References: <20100629232147.C019548255@magilla.sf.frob.com> <20100630181436.518364C33C@magilla.sf.frob.com> <20100630204424.3DCE34C33C@magilla.sf.frob.com> <20100630221406.254AC4C33E@magilla.sf.frob.com> <20100706191407.535874824F@magilla.sf.frob.com> <20100708225253.3470A4D6C2@magilla.sf.frob.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SW-Source: 2010-q3/txt/msg00020.txt.bz2 On Thu, 8 Jul 2010, Roland McGrath wrote: > IMHO that procedure is now hairy enough that it really should be > encapsulated in some script provided by gdb (and maintained upstream if > the gdb support itself is upstream). Not to mention that all other > users of the index support would want such a script to use by hand, > integrate into a different package system, etc. > > i.e., find-debuginfo.sh would just add: > > gdb-add-index "$f" > /dev/null 2>&1 Sounds good to me. Also if it were an external script that might not be there (depending on gdb-version), find-debuginfo.sh can do [ -x /usr/bin/gdb-add-index ] && /usr/bin/gdb-add-index "$f" \ > /dev/null 2>&1 making it nicer for upstreaming. Of course for F >= 14 we still want rpm-build to require gdb to consistently get the indexes. - Panu -