From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25530 invoked by alias); 8 Jul 2009 14:45:51 -0000 Received: (qmail 25520 invoked by uid 22791); 8 Jul 2009 14:45:50 -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 14:45:45 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MOYOv-0008PE-Kv for gdb-patches@sources.redhat.com; Wed, 08 Jul 2009 14:45:37 +0000 Received: from enigma.qnx.com ([209.226.137.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 14:45:37 +0000 Received: from aristovski by enigma.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 14:45:37 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: Re: How to fix solib path name? Date: Wed, 08 Jul 2009 14:45:00 -0000 Message-ID: References: <1247063678.3870.59.camel@pavilion> 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: <1247063678.3870.59.camel@pavilion> 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/msg00249.txt.bz2 Danny Backx wrote: > I'm preparing a gdb patch so it works in a cross-debugging environment. > Host I'm using is a linux pc, target is running Windows CE Embedded 6.0. > > The gdbserver part is getting complete, see other messages on this list. > > The gdb still has a quirck or two. > > (gdb) info sharedlibrary >>>From To Syms Read Shared Object Library > No \network\x86\libgcc_s_sjlj-1.dll > 0x41ee1000 0x41fb2974 > Yes /opt/x86mingw32ce/i386-mingw32ce/lib/libstdc++-6.dll > No \Windows\coredll.dll > (gdb) > > I'm guessing that it should strip the \network\x86 from the library name > before it attempts to find it in the solib-search-path. 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). > > Should it ? > > If yes, where should the code for that be ? > > Thanks for the help. Once this gets fixed, I can submit that part of my > work too. > > Danny -- Aleksandar Ristovski QNX Software Systems