From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4389 invoked by alias); 4 May 2005 03:05:37 -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 4368 invoked from network); 4 May 2005 03:05:33 -0000 Received: from unknown (HELO cgf.cx) (66.30.17.189) by sourceware.org with SMTP; 4 May 2005 03:05:33 -0000 Received: by cgf.cx (Postfix, from userid 201) id 6DA5113C7E2; Tue, 3 May 2005 23:05:33 -0400 (EDT) Date: Wed, 04 May 2005 03:05:00 -0000 From: Christopher Faylor To: gdb-patches@sources.redhat.com Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Message-ID: <20050504030533.GD24661@trixie.casa.cgf.cx> Mail-Followup-To: gdb-patches@sources.redhat.com References: <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> <20050503222401.GA10377@nevyn.them.org> <20050503222647.GA19896@trixie.casa.cgf.cx> <20050504023212.GA26243@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050504023212.GA26243@white> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00101.txt.bz2 On Tue, May 03, 2005 at 10:32:12PM -0400, Bob Rossi wrote: >On Tue, May 03, 2005 at 06:26:47PM -0400, Christopher Faylor wrote: >> On Tue, May 03, 2005 at 06:24:01PM -0400, Daniel Jacobowitz wrote: >> >On Tue, May 03, 2005 at 05:39:11PM -0400, Christopher Faylor wrote: >> >> 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... >> >> Ah. Sorry. I didn't dig far enough. >> >> So, I guess I don't understand Eli's comments, then. > >I begin to make up a patch, and realized that the issue below needs to be >resolved before anything can be done. > >Basically, Eli believes it is possible for GDB to return in the fullname >field, a file name that is not absolute. Two examples were \abc or >d:foo. He also mentioned that he might have once even seen a relative path. > http://sources.redhat.com/ml/gdb-patches/2005-05/msg00091.html > >If what Eli believes is true (a point which I think is not worth >debating, it could go either depending on the input to GDB), then there >is 2 philosophies the testsuite can take to validating the fullname: I don't think I've seen it mentioned but absolute paths in windows either look like this: d:\foo\bar or this: \\share\foo\bar There are other variations of the \\ form but I don't think they are important for gdb right now and I don't see any reason why gdb shouldn't always provide things in one or the other form. I don't know if this matters to the discussion, but I thought I'd mention it. cgf