From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3239 invoked by alias); 3 May 2005 03:49:49 -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 2927 invoked from network); 3 May 2005 03:49:41 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 3 May 2005 03:49:41 -0000 Received: from zaretski (IGLD-80-230-71-109.inter.net.il [80.230.71.109]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id EGY30444 (AUTH halo1); Tue, 3 May 2005 06:49:39 +0300 (IDT) Date: Tue, 03 May 2005 03:49:00 -0000 From: "Eli Zaretskii" To: gdb-patches@sources.redhat.com Message-ID: <01c54f92$Blat.v2.4$f64406c0@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 In-reply-to: <20050502212043.GE22967@white> (message from Bob Rossi on Mon, 2 May 2005 17:20:43 -0400) Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Reply-to: Eli Zaretskii References: <20050430191755.GF7009@nevyn.them.org> <20050501021945.GA19962@white> <01c54e7a$Blat.v2.4$e31afae0@zahav.net.il> <20050502005415.GA21588@white> <01c54f4d$Blat.v2.4$3ce76180@zahav.net.il> <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> <20050502212043.GE22967@white> X-SW-Source: 2005-05/txt/msg00082.txt.bz2 > Date: Mon, 2 May 2005 17:20:43 -0400 > From: Bob Rossi > > The question is, will GDB will return \abc or d:foo from source.c:openp? Yes. > I see that IS_ABSOLUTE_PATH is being used, which specifically says it > allows the case \abc and d:foo. Exactly. > So, the next question is, does xfullpath change \abc or d:foo into a > real absolute path or not? It can't do anything with \abc (except perhaps convert it into /abc, but that's not a given). For d:foo, it converts it into d:./foo, which is still not 100% absolute, but xfullpath cannot do anything about it, since it doesn't know how to resolve "." (i.e., what was the cwd at the time of the compilation). > Notice the comment in utils.c:3021 > > #ifdef HAVE_DOS_BASED_FILE_SYSTEM > /* We need to be careful when filename is of the form 'd:foo', which > is equivalent of d:./foo, which is totally different from d:/foo. */ > if (strlen (dir_name) == 2 && isalpha (dir_name[0]) && dir_name[1] == ':') > { > dir_name[2] = '.'; > dir_name[3] = '\000'; > } > #endif > > That above comment broke my brain :) If you mean that it isn't clear, let me know and I will try to clarify.