From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21880 invoked by alias); 3 Oct 2002 17:07:13 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21870 invoked from network); 3 Oct 2002 17:07:10 -0000 Received: from unknown (HELO msgbas1.cos.agilent.com) (192.25.240.36) by sources.redhat.com with SMTP; 3 Oct 2002 17:07:10 -0000 Received: from relcos2.cos.agilent.com (relcos2.cos.agilent.com [130.29.152.237]) by msgbas1.cos.agilent.com (Postfix) with ESMTP id 2127FB356; Thu, 3 Oct 2002 11:07:10 -0600 (MDT) Received: from websvr.canada.agilent.com (websvr.canada.agilent.com [141.184.122.102]) by relcos2.cos.agilent.com (Postfix) with ESMTP id 436C3311; Thu, 3 Oct 2002 11:07:09 -0600 (MDT) Received: from agilent.com (dhcp6burnaby.canada.agilent.com [141.184.123.147]) by websvr.canada.agilent.com (8.9.3 (PHNE_25183)/8.9.3 SMKit7.1.1_Agilent) with ESMTP id KAA23793; Thu, 3 Oct 2002 10:07:08 -0700 (PDT) Message-ID: <3D9C7929.5D94489D@agilent.com> Date: Thu, 03 Oct 2002 10:07:00 -0000 From: Earl Chew Organization: Agilent Technologies X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Cc: Daniel Jacobowitz Subject: Re: remapping absolute source paths References: <200210030636.g936aOi31950@paper-wolf-solo.tigerfood.org> <20021003143218.GA24188@nevyn.them.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00033.txt.bz2 Daniel Jacobowitz wrote: > On Wed, Oct 02, 2002 at 11:36:23PM -0700, Felix Lee wrote: > > 2. gdb should try every sub-path of the sourcefile name, > > so it should try > > /p/a/x/foo.c > > /p/x/foo.c > > etc. > > > > 1 is less transparent, but it's easier to control > > ambiguities, like if for some reason the executable has both > > /a/x/foo.c > > /b/y/foo.c > > which seems unlikely, but I could see it happening when > > linking several libraries and packages together. > > > > I'm leaning towards implementing 1. any thoughts? > > Actually, I think that Earl implemented #2 in the message: > [RFC PATCH] Finding files in source trees > in September. Earl, mind resending that for more comments? I think > you satisfied my concerns completely. I refer you to: http://sources.redhat.com/ml/gdb-patches/2002-09/msg00319.html Daniel's concerns are raised in: http://sources.redhat.com/ml/gdb-patches/2002-09/msg00322.html and I provided answers in: http://sources.redhat.com/ml/gdb-patches/2002-09/msg00324.html BTW I should point out that this patch is relative to another patch I made to introduce openp_1() which implements openp() but allows it to be immune to occurrences of DIRNAME_SEPARATOR which can appear in the filenames embedded in the debugging information. When this occurs, substitution into $cdir causes surprising results! This is a particular risk in Win32 environments because : can occur in the context of filenames. See http://sources.redhat.com/ml/gdb-patches/2002-09/msg00317.html for details. Earl