From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30854 invoked by alias); 3 Aug 2005 20:00:51 -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 30816 invoked by uid 22791); 3 Aug 2005 20:00:44 -0000 Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 03 Aug 2005 20:00:44 +0000 Received: from [10.42.102.103] (STIMPY [10.42.102.103]) by nimbus.ott.qnx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PJ4CTPVX; Wed, 3 Aug 2005 16:00:42 -0400 Message-ID: <42F12318.4040307@qnx.com> Date: Wed, 03 Aug 2005 20:00:00 -0000 From: Kris Warkentin User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Re: solib search algorithm for cross-gdb References: <17137.6901.979049.779@gargle.gargle.HOWL> In-Reply-To: <17137.6901.979049.779@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-08/txt/msg00022.txt.bz2 Paul Koning wrote: >When I said "cross-gdb" I was thinking about host != target -- for >example an Intel host and a MIPS target. Using the literal library >path can't possibly be right in that case. > >Daniel suggests some other cases that are more dynamic -- host == >target but we're doing remote debugging. > >Right now we have TARGET_SO_FIND_AND_OPEN_SOLIB as a way for the >target specific code to add another way to find libraries, but we >don't have any way for any component to subtract ways, which is what I >need here. > Setting solib-absolute-prefix is a the way to subtract searching from the root since it either searches or /, not both. Don't know if it's practical for you but we explicitly set solib-absolute-prefix in our init functions so we never have to worry about accidentally getting /usr/lib/somelib.so instead of $SDK_ROOT/usr/lib/somelib.so. cheers, Kris