From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23023 invoked by alias); 8 Jul 2009 15:21:11 -0000 Received: (qmail 23012 invoked by uid 22791); 8 Jul 2009 15:21:10 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jul 2009 15:21:02 +0000 Received: (qmail 28954 invoked from network); 8 Jul 2009 15:21:01 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Jul 2009 15:21:01 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: How to fix solib path name? Date: Wed, 08 Jul 2009 15:21:00 -0000 User-Agent: KMail/1.9.10 Cc: Aleksandar Ristovski References: <1247063678.3870.59.camel@pavilion> <200907081551.33927.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <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/msg00254.txt.bz2 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". -- Pedro Alves