From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4694 invoked by alias); 4 May 2005 20:39: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 4505 invoked from network); 4 May 2005 20:39:46 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 4 May 2005 20:39:46 -0000 Received: from zaretski (IGLD-80-230-9-69.inter.net.il [80.230.9.69]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id EHI23828 (AUTH halo1); Wed, 4 May 2005 23:39:40 +0300 (IDT) Date: Wed, 04 May 2005 20:39:00 -0000 From: "Eli Zaretskii" To: gdb-patches@sources.redhat.com Message-ID: <01c550e9$Blat.v2.4$378fcc20@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 In-reply-to: <20050504175802.GY24661@trixie.casa.cgf.cx> (message from Christopher Faylor on Wed, 4 May 2005 13:58:02 -0400) Subject: Re: [RFC] fullname attribute for GDB/MI stack frames Reply-to: Eli Zaretskii References: <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> <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> X-SW-Source: 2005-05/txt/msg00138.txt.bz2 > 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. 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.