From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29149 invoked by alias); 5 May 2005 19:18:05 -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 28449 invoked from network); 5 May 2005 19:17:54 -0000 Received: from unknown (HELO cgf.cx) (66.30.17.189) by sourceware.org with SMTP; 5 May 2005 19:17:54 -0000 Received: by cgf.cx (Postfix, from userid 201) id 9BFA413C7E2; Thu, 5 May 2005 15:17:54 -0400 (EDT) Date: Thu, 05 May 2005 19:18:00 -0000 From: Christopher Faylor To: Dennis Brueni , gdb-patches@sources.redhat.com, Eli Zaretskii Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Message-ID: <20050505191754.GL5374@trixie.casa.cgf.cx> Mail-Followup-To: Dennis Brueni , gdb-patches@sources.redhat.com, Eli Zaretskii References: <20050430191755.GF7009@nevyn.them.org> <20050501021945.GA19962@white> <01c54e7a$Blat.v2.4$e31afae0@zahav.net.il> <20050505171910.GB31758@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050505171910.GB31758@white> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00175.txt.bz2 On Thu, May 05, 2005 at 01:19:10PM -0400, Bob Rossi wrote: >> The proper regexp should be something like >> >> \([A-z]:\)?[/\\].*basics.c > >I sent this question to Eli, but thought others might be interested. >The regex above woks on /.* and d:\.* and \\.* and \.* but it doesn't >work on d:.*. I can't see a simple way to add that last case. Does >anyone else? > >This is the only way I could solve the last case, > \([A-z]:[^\].*\)|\([A-z]:\)?[/\\].*basics.c Maybe it's a minor nit but \\.* is not strictly correct for a UNC. With, \\X\y, the X is not optional. So there has to be at least three backslashes in a UNC path, e.g, \\\\[^\\][^\\]*\..* cgf