From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12798 invoked by alias); 1 May 2005 18:24:51 -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 12770 invoked from network); 1 May 2005 18:24:44 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 1 May 2005 18:24:44 -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 EGS34585 (AUTH halo1); Sun, 1 May 2005 21:24:40 +0300 (IDT) Date: Sun, 01 May 2005 18:24:00 -0000 From: "Eli Zaretskii" To: Dennis Brueni , gdb-patches@sources.redhat.com Message-ID: <01c54e7a$Blat.v2.4$e31afae0@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 In-reply-to: <20050501021945.GA19962@white> (message from Bob Rossi on Sat, 30 Apr 2005 22:19:45 -0400) Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Reply-to: Eli Zaretskii References: <20050430191755.GF7009@nevyn.them.org> <20050501021945.GA19962@white> X-SW-Source: 2005-05/txt/msg00011.txt.bz2 > Date: Sat, 30 Apr 2005 22:19:45 -0400 > From: Bob Rossi > > On Sat, Apr 30, 2005 at 03:17:55PM -0400, Daniel Jacobowitz wrote: > > On Fri, Apr 01, 2005 at 02:13:33PM -0500, Dennis Brueni wrote: > > > > Again, for the fullname regex, I would recommend using the > > > > same regex used in mi-file.exp. This would be like > > > > fullname="/.*basics.c" This forces the regex to ensure that > > > > the path is absolute, which the check you have does not. > > > > Will GDB always output absolute paths that start with "/"? What about > > non-Cygwin Windows for example? DJGPP? To answer Daniel's question: no, absolute file names on DOS/Windows systems do not necessarily begin with a slash. > Like Dennis noted, it could be possible that the fullname might not > start with a "/". I originally posted the patch with the fullname > starting with a "/", and since then, there hasn't been any complaints. > If there is a better regex that ensures that the fullname is absolute > I'd be happy to change the mi-file.exp test to it. The proper regexp should be something like \([A-z]:\)?[/\\].*basics.c This assumes that \(...\) is the proper syntax for grouping (I don't know much about the regexp syntax expected by Expect). (The uppercase A but lowercase z in the above are intentional: that's because letters between Z and a can also be drive letters, amazingly enough.)