From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18754 invoked by alias); 4 May 2005 13:45:48 -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 18689 invoked from network); 4 May 2005 13:45:38 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 4 May 2005 13:45:38 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DTKC2-00032P-6w; Wed, 04 May 2005 09:45:38 -0400 Date: Wed, 04 May 2005 13:45:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Message-ID: <20050504134538.GC10578@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sources.redhat.com References: <20050502195515.GA10429@nevyn.them.org> <01c54f57$Blat.v2.4$4c163500@zahav.net.il> <20050502204859.GA6090@nevyn.them.org> <01c54f91$Blat.v2.4$f6e0b160@zahav.net.il> <20050503034604.GA437@nevyn.them.org> <01c55017$Blat.v2.4$3cb51f20@zahav.net.il> <20050503195650.GD25356@white> <01c55025$Blat.v2.4$00e755e0@zahav.net.il> <20050503213911.GB16440@trixie.casa.cgf.cx> <01c55061$Blat.v2.4$5a644e20@zahav.net.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01c55061$Blat.v2.4$5a644e20@zahav.net.il> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00111.txt.bz2 On Wed, May 04, 2005 at 07:24:47AM +0300, Eli Zaretskii wrote: > > Date: Tue, 3 May 2005 17:39:11 -0400 > > From: Christopher Faylor > > > > Cygwin has realpath and Windows has an equivalent function. AFAIK, it > > will correctly translate \abc to x:\abc. > > No, it will _incorrectly_ translate them: the current drive and > directory that are in effect when we call these functions are _not_ > what they were when the compiler compiled the source and recorded its > file name in the debug info. Eli, this is inconsistent with the rest of the world. In the rest of the world, realpath() and canonicalize_file_name() call getcwd() (or the operating system's equivalent function). Can you explain to us why it is correct for other OSes to do this resolution in xfullpath (or wherever else), and for DJGPP not to? > > Anyway, it seems like the mingw port should be using GetFullPathName() > > in gdb_realpath(). > > I don't see this in my sandbox. It doesn't. It should. More precisely, gdb_realpath should be removed and replaced with libiberty's lrealpath(). I was under the impression that I had done this when I added the function to libiberty, but obviously I forgot. -- Daniel Jacobowitz CodeSourcery, LLC