From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6998 invoked by alias); 13 May 2008 19:08:53 -0000 Received: (qmail 6987 invoked by uid 22791); 13 May 2008 19:08:52 -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; Tue, 13 May 2008 19:08:20 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CFF0080001; Tue, 13 May 2008 19:08:18 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id AD66D982C4; Tue, 13 May 2008 19:08:18 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JvzrG-0003bT-2H; Tue, 13 May 2008 15:08:18 -0400 Date: Tue, 13 May 2008 21:11:00 -0000 From: Daniel Jacobowitz To: Aleksandar Ristovski Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] new substitute path when loading feature Message-ID: <20080513190818.GA13776@caradoc.them.org> Mail-Followup-To: Aleksandar Ristovski , gdb-patches@sources.redhat.com References: <20080513181131.GA9899@caradoc.them.org> <4829E42D.4050105@qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4829E42D.4050105@qnx.com> User-Agent: Mutt/1.5.17 (2008-05-05) 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: 2008-05/txt/msg00408.txt.bz2 On Tue, May 13, 2008 at 02:55:41PM -0400, Aleksandar Ristovski wrote: > > Now without my change, this will sometimes work, sometimes it won't. For example, if the program was compiled on windows like this: > > C:\Temp\dirs\debug>gcc -g -O0 -c ../main.c -o main.o > > things would work. However if built like this: > > C:\Temp\dirs\debug>gcc -g -O0 -c c:\Temp\dirs\main.c -o main.o > > things would not work (as shown above). Is this just because of the slashes? I have a patch which makes Unix-configured GDB more tolerant of DOS paths and drive names. I can post it if you like; I've been meaning to. > In any case, it seems right to be able to rewrite paths at readin and let > gdb "see" the binaries as if they were built locally. This means you have to have the source path mapping worked out before you know what files are in the program, so it's hard to fix up later if you see a new unrelocated path. -- Daniel Jacobowitz CodeSourcery