From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4330 invoked by alias); 25 Feb 2008 13:32:21 -0000 Received: (qmail 4306 invoked by uid 22791); 25 Feb 2008 13:32:12 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Feb 2008 13:31:52 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 654F798118; Mon, 25 Feb 2008 13:31:51 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 519E49801D; Mon, 25 Feb 2008 13:31:51 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JTdQs-00052w-Gh; Mon, 25 Feb 2008 08:31:50 -0500 Date: Mon, 25 Feb 2008 13:55:00 -0000 From: Daniel Jacobowitz To: "Dr. Rolf Jansen" Cc: Steve Kreyer , gdb@sourceware.org Subject: Re: Using dlopen and remote debugging Message-ID: <20080225133150.GB19361@caradoc.them.org> Mail-Followup-To: "Dr. Rolf Jansen" , Steve Kreyer , gdb@sourceware.org References: <1015843957@web.de> <92BB1E0C-6CEC-41FF-AD60-A7F2590D1DA1@surtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92BB1E0C-6CEC-41FF-AD60-A7F2590D1DA1@surtec.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00211.txt.bz2 On Mon, Feb 25, 2008 at 10:03:09AM -0300, Dr. Rolf Jansen wrote: > In my case this was impossible. The remote machine happened to run > Windows XP and the host Mac OS X. I found no way to let Mac OS X > understand a full path like "C:\path\to\my\exe\and\dll. I needed to patch > gdbserver. In the latest CVS version I changed server.c beginning at line > 528 to: Then just set solib-search-path; GDB will look up the basenames. There is an additional wrinkle involving path separators, since GDB is likely to think that is bare filename and not a full path. But it should be fixed on the GDB side, not on the target side. This one's been discussed a few times recently. -- Daniel Jacobowitz CodeSourcery