From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7745 invoked by alias); 9 Jan 2008 19:43:01 -0000 Received: (qmail 7719 invoked by uid 22791); 9 Jan 2008 19:43:00 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 Jan 2008 19:42:40 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 9BE8698223; Wed, 9 Jan 2008 19:42:38 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 534FB98216; Wed, 9 Jan 2008 19:42:38 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JCgov-0005as-0h; Wed, 09 Jan 2008 14:42:37 -0500 Date: Wed, 09 Jan 2008 19:43:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Aleksandar Ristovski , dje@google.com, gdb-patches@sources.redhat.com, gcc-patches@gcc.gnu.org, RMansfield@qnx.com Subject: Re: [patch] IS_ABSOLUTE_PATH to handle both DOS and POSIX path st yles Message-ID: <20080109194236.GA21299@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , Aleksandar Ristovski , dje@google.com, gdb-patches@sources.redhat.com, gcc-patches@gcc.gnu.org, RMansfield@qnx.com References: <2F6320727174C448A52CEB63D85D11F40A76@nova.ott.qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00211.txt.bz2 On Wed, Jan 09, 2008 at 09:09:24PM +0200, Eli Zaretskii wrote: > > From: Aleksandar Ristovski > > Cc: dje@google.com, gdb-patches@sources.redhat.com, gcc-patches@gcc.gnu.org, Ryan Mansfield > > Date: Wed, 9 Jan 2008 11:13:11 -0500 > > > > (This only works for drive letter in DOS paths, doesn't address the dir. > > Separator issue). > > Right, and therefore why is it useful to consider partial solutions? > Can we at all use similar method to handle the slashes? I used to use a local version of filename_cmp which treated both / and \ as directory separators. Barring the strict POSIX filename support issue, which we've agreed can be handled by a user option, it worked well enough. You would still need to use substitute-path to handle drive names; this wasn't an issue for me, since I was running the GDB testsuite, which uses "dir" heavily to find source files. -- Daniel Jacobowitz CodeSourcery