From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3522 invoked by alias); 3 May 2005 22:14:15 -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 2538 invoked from network); 3 May 2005 22:13:40 -0000 Received: from unknown (HELO cgf.cx) (66.30.17.189) by sourceware.org with SMTP; 3 May 2005 22:13:40 -0000 Received: by cgf.cx (Postfix, from userid 201) id C158813C7E2; Tue, 3 May 2005 18:13:40 -0400 (EDT) Date: Tue, 03 May 2005 22:14:00 -0000 From: Christopher Faylor To: gdb-patches@sources.redhat.com, Eli Zaretskii Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Message-ID: <20050503221340.GD16440@trixie.casa.cgf.cx> Mail-Followup-To: gdb-patches@sources.redhat.com, Eli Zaretskii 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> <20050503213943.GG25356@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050503213943.GG25356@white> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00095.txt.bz2 On Tue, May 03, 2005 at 05:39:43PM -0400, Bob Rossi 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 >> > Cc: gdb-patches@sources.redhat.com >> > >> > When I originally added the field fullname, I purposely picked that name >> > because I was unsure if the path would always be absolute. However, it >> > was to my understand, that it would always be. Thus, in the manual I >> > put, >> > >> > Synopsis >> > -file-list-exec-source-file >> > >> > List the line number, the current source file, and the absolute path to >> > the current source file for the current executable. >> > >> > I always expected the fullname to be absolute. >> >> As I tried to explain, the Windows file names have a semi-absolute >> form. That form is generally treated like an absolute file name >> because the single most important cause for a program to test a file >> name for being absolute is to decide whether we need to prepend the >> cwd to it; d:foo and \abc certainly don't need that! The fullname >> field uses the machinery that was invented mainly for that purpose, so >> it inherits the same behavior. > >OK, I'm going to add the examples d:foo and \abc to the doco. This >could potentially help FE developers understand these odd case's when >they appear. Also, it's important to say that the fullname is not >necessarily absolute, but simply the most precise file name that GDB >has. Wouldn't it make more sense to fix the fullpath machinery? cgf