From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2261 invoked by alias); 19 Mar 2002 17:17:50 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2104 invoked from network); 19 Mar 2002 17:17:40 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sources.redhat.com with SMTP; 19 Mar 2002 17:17:40 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id TAA21119; Tue, 19 Mar 2002 19:16:33 +0200 (IST) Date: Tue, 19 Mar 2002 09:17:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Joel Brobecker cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] gdb_realpath causes problems with GVD In-Reply-To: <20020319171236.D6465@act-europe.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-03/txt/msg00348.txt.bz2 On Tue, 19 Mar 2002, Joel Brobecker wrote: > As you see, GDB has translated toto.c into toto.C. This translation > causes GDB to think that the inferior stopped in a file named toto.C > (which is not known to GDB, since the compiler used only toto.c). Are you saying that gdb_realpath shouldn't follow symlinks? > The translation is performed by gdb_realpath. I searched the gdb-patches > archives, and found the reason for this translation in a message from > Tom Tromey. I think I found a way to keep the fix to his problem and > then at the same time fix our issue: instead of canonicalizing the > entire filename, I suggest that we only expand the directory prefix > (ie the part returned by the "dirname" unix command). Is this a complete solution? That is, will it work in a situation slightly different from your, e.g., when one of the directories in the full file name is also a symlink?