From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28133 invoked by alias); 8 Jul 2009 15:38:01 -0000 Received: (qmail 28086 invoked by uid 22791); 8 Jul 2009 15:38:01 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jul 2009 15:37:52 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MOZDO-0002M6-1Y for gdb-patches@sources.redhat.com; Wed, 08 Jul 2009 15:37:46 +0000 Received: from mobius.qnx.com ([209.226.137.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 15:37:46 +0000 Received: from aristovski by mobius.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 15:37:46 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: Re: How to fix solib path name? Date: Wed, 08 Jul 2009 15:38:00 -0000 Message-ID: References: <1247063678.3870.59.camel@pavilion> <200907081551.33927.pedro@codesourcery.com> <200907081621.03189.pedro@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <200907081621.03189.pedro@codesourcery.com> 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: 2009-07/txt/msg00256.txt.bz2 Pedro Alves wrote: > On Wednesday 08 July 2009 16:14:41, Aleksandar Ristovski wrote: >> Pedro Alves wrote: >>> On Wednesday 08 July 2009 15:45:23, Aleksandar Ristovski wrote: >>>> See solib_find comment in "solib.c" for figuring out how it >>>> looks for it. >>>> >>>> You can provide "find_and_open_solib" in your target_ops for >>>> customizing it (in case you want to provide "default" search >>>> algorithm when built-in solib-search-path mechanism fails to >>>> find it). >>> Please don't go there, it's not really needed. >>> >> I thought the mechanism worked quite nicely. For us at least. >> >> If solib-search-path is not set, we end up searching solibs >> using find_and_open_solib. >> >> When solib-search-path is set, then it takes precedence and >> only if solib is not found there, we fallback to >> find_and_open_solib. >> >> What would you do differently? > > Use "(gdb) set sysroot". > That is for absolute paths. For relative paths find_and_open_solib is still a way to go IMHO - if you disagree I would like to hear your rationale. Thanks, Aleksandar