From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15350 invoked by alias); 3 May 2005 22:24:06 -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 15327 invoked from network); 3 May 2005 22:24:02 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 3 May 2005 22:24:02 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DT5o9-0002j0-N5 for ; Tue, 03 May 2005 18:24:01 -0400 Date: Tue, 03 May 2005 22:24:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Message-ID: <20050503222401.GA10377@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <01c54f50$Blat.v2.4$29b171c0@zahav.net.il> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050503213911.GB16440@trixie.casa.cgf.cx> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00096.txt.bz2 On Tue, May 03, 2005 at 05:39:11PM -0400, Christopher Faylor wrote: > On Wed, May 04, 2005 at 12:12:48AM +0300, Eli Zaretskii wrote: > >> Date: Tue, 3 May 2005 15:56:50 -0400 > >> From: Bob Rossi > >> Does anyone know what xfullpath would do if d:foo or \abc was passed to > >> it? > > > >I already answered that in this thread: it will leave \abc intact, and > >d:foo will be converted into d:./foo. (On Windows, that is, and > >assuming that there's no realpath or canonicalize_file_name in MinGW.) > >So xfullpath does not change anything with these cases on Windows (and > >can't, since the necessary information is missing). > > Cygwin has realpath and Windows has an equivalent function. AFAIK, it > will correctly translate \abc to x:\abc. I don't know what it will do > with d:foo. NT+ shells treat that as "the current directory on drive > d:" but that's just something that is special to a shell. Probably it > should be resolved as "d:\foo". Hopefully the Windows routine for > producing absolute paths will do something sensical. > > Anyway, it seems like the mingw port should be using GetFullPathName() > in gdb_realpath(). libiberty/lbasename.h: /* cygwin has realpath, so it won't get here. */ # if defined (_WIN32) # define WIN32_LEAN_AND_MEAN # include /* for GetFullPathName */ # endif So we call Cygwin's realpath or Window's GetFullPathName if we fall through to the lrealpath call. I don't know any of this affects DJGPP... -- Daniel Jacobowitz CodeSourcery, LLC