From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31939 invoked by alias); 13 Jul 2002 22:47:33 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31932 invoked from network); 13 Jul 2002 22:47:32 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 13 Jul 2002 22:47:32 -0000 Received: from drow by crack.them.org with local (Exim 3.12 #1 (Debian)) id 17TVfj-00085v-00; Sat, 13 Jul 2002 17:47:27 -0500 Date: Sat, 13 Jul 2002 15:47:00 -0000 From: Daniel Jacobowitz To: Dan Kegel Cc: gdb@sources.redhat.com Subject: Re: [patch, rfc] configure option for default value of solib-search-path Message-ID: <20020713174727.B30747@crack.them.org> References: <3D30B60D.3040905@ixiacom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3D30B60D.3040905@ixiacom.com>; from dkegel@ixiacom.com on Sat, Jul 13, 2002 at 04:21:49PM -0700 X-SW-Source: 2002-07/txt/msg00145.txt.bz2 On Sat, Jul 13, 2002 at 04:21:49PM -0700, Dan Kegel wrote: > In my cross-development environment, I need to type > > set solib-search-path > /opt/hardhat/devkit/ppc/405/powerpc-hardhat-linux/lib:/opt/hardhat/devkit/ppc/405/powerpc-hardhat-linux/usr/lib:/opt/hardhat/devkit/ppc/405/target/lib:/opt/hardhat/devkit/ppc/405/target/usr/lib > > when I start gdb. That's just a bit awkward; I'd prefer to have it default > to the proper value, just like the Montavista version does. > > Here's a patch that lets you set the initial value of this patch at > configure time. I haven't sent in a copyright assignment, so this > won't be accepted into the gdb tree, but I'd appreciate comments on > whether this is the right approach. If it is, I'll gladly get the > copyright asignment paperwork going. > > (Note: after applying the patch, you need to run autoconf.) I believe that this was rejected in the past, for reference. I don't remember why though. (Also, it's almost certainly a solib-absolute-prefix of /opt/hardhat/devkit/ppc/405/target that you want. I don't know that setting a search path will work properly when the filenames and full paths of the libraries are available... might work, but if you actually need any shared libraries outside of target/ your program is unlikely to run on the target :) Or are you putting unstripped versions in one and stripped in the other? That always makes me worry about library skew; I generally strip the target libraries only after building a target image. -- Daniel Jacobowitz Debian GNU/Linux Developer MontaVista Software Carnegie Mellon University