From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20315 invoked by alias); 3 May 2005 21:39:14 -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 20290 invoked from network); 3 May 2005 21:39:11 -0000 Received: from unknown (HELO cgf.cx) (66.30.17.189) by sourceware.org with SMTP; 3 May 2005 21:39:11 -0000 Received: by cgf.cx (Postfix, from userid 201) id 2F76613C7E2; Tue, 3 May 2005 17:39:11 -0400 (EDT) Date: Tue, 03 May 2005 21:39:00 -0000 From: Christopher Faylor To: gdb-patches@sources.redhat.com Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Message-ID: <20050503213911.GB16440@trixie.casa.cgf.cx> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20050502193638.GD22967@white> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01c55025$Blat.v2.4$00e755e0@zahav.net.il> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00093.txt.bz2 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(). cgf