From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30394 invoked by alias); 4 May 2005 23:34:21 -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 30330 invoked from network); 4 May 2005 23:34:11 -0000 Received: from unknown (HELO cgf.cx) (66.30.17.189) by sourceware.org with SMTP; 4 May 2005 23:34:11 -0000 Received: by cgf.cx (Postfix, from userid 201) id 2DDFA13C7E2; Wed, 4 May 2005 19:34:11 -0400 (EDT) Date: Wed, 04 May 2005 23:34: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: <20050504233411.GK30075@trixie.casa.cgf.cx> Mail-Followup-To: gdb-patches@sources.redhat.com, Eli Zaretskii References: <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> <01c55061$Blat.v2.4$5a644e20@zahav.net.il> <20050504114821.GA27168@white> <20050504145535.GJ24661@trixie.casa.cgf.cx> <20050504175802.GY24661@trixie.casa.cgf.cx> <01c550e9$Blat.v2.4$378fcc20@zahav.net.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01c550e9$Blat.v2.4$378fcc20@zahav.net.il> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00149.txt.bz2 On Wed, May 04, 2005 at 11:37:21PM +0300, Eli Zaretskii wrote: >> Date: Wed, 4 May 2005 13:58:02 -0400 >> From: Christopher Faylor >> >> Nevertheless, I think it is irrelevant what could possibly show up >> in debug info since it is possible to convert everything into the >> x:\y or \\x\y form by using libiberty's lrealpath. That >> would reduce the regex for an absolute path on windows to: >> >> [a-zA-Z]:\\.*\|\\\\[^\\][^\\]*\\[^\\].* > >This will fail UNCs, btw. So I think you should at least allow for >two consecutive backslashes at the beginning. That is what is supposed to be happening on the right side of the |. I'm assuming that there won't be any of the strange \\.\ or \\?\ >Also, I think lrealpath is the wrong place for converting everything >to backslashes, since it presumably is (or is intended to be) used in >many programs ported from Unix or GNU/Linux, and those programs >tolerate backslashes much less well than they do forward slashes. If >at all, convert everything to forward slashes. But lrealpath is presumably used in the gcc and binutils mingw ports isn't it? cgf