From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5837 invoked by alias); 6 Jan 2008 20:03:53 -0000 Received: (qmail 5827 invoked by uid 22791); 6 Jan 2008 20:03:52 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 06 Jan 2008 20:03:35 +0000 Received: from zps37.corp.google.com (zps37.corp.google.com [172.25.146.37]) by smtp-out.google.com with ESMTP id m06K3BAY004152 for ; Sun, 6 Jan 2008 12:03:11 -0800 Received: from wa-out-1112.google.com (wahk34.prod.google.com [10.114.237.34]) by zps37.corp.google.com with ESMTP id m06K39wh024330 for ; Sun, 6 Jan 2008 12:03:11 -0800 Received: by wa-out-1112.google.com with SMTP id k34so12043081wah.10 for ; Sun, 06 Jan 2008 12:03:09 -0800 (PST) Received: by 10.114.175.16 with SMTP id x16mr20013485wae.12.1199649789471; Sun, 06 Jan 2008 12:03:09 -0800 (PST) Received: by 10.115.107.7 with HTTP; Sun, 6 Jan 2008 12:03:08 -0800 (PST) Message-ID: Date: Sun, 06 Jan 2008 20:03:00 -0000 From: "Doug Evans" To: "Eli Zaretskii" Subject: Re: [patch] IS_ABSOLUTE_PATH to handle both DOS and POSIX path st yles Cc: "Daniel Jacobowitz" , gdb-patches@sources.redhat.com, ARistovski@qnx.com, gcc-patches@gcc.gnu.org, RMansfield@qnx.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2F6320727174C448A52CEB63D85D11F40A58@nova.ott.qnx.com> <20080106054030.GA10410@caradoc.them.org> 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/msg00100.txt.bz2 On Jan 6, 2008 11:37 AM, Eli Zaretskii wrote: > [I added gdb-patches to the discussion.] > > > Date: Sun, 6 Jan 2008 00:40:30 -0500 > > From: Daniel Jacobowitz > > Cc: Eli Zaretskii , gcc-patches@gcc.gnu.org, > > Ryan Mansfield > > > > On Sun, Jan 06, 2008 at 12:30:11AM -0500, Aleksandar Ristovski wrote: > > > > > > > > But the form of the file names is determined by the platform on which > > > > you compiled the sources, right? > > > > > > Right and this is the problem: IS_ABSOLUTE_PATH is determined at compile > > > time only by platform on which gdb will be running. Gdb, however needs to > > > deal with binaries possibly built on a platform with different file system > > > (we often have this case: gdb on POSIX file system debugging binary built on > > > windows). > > > > I also regularly work with the other direction, POSIX build system and > > Windows debug host. > > In that case, I think it's wrong to allow both styles of slashes and > absolute file names. Instead, we should have a user option to set the > correct style, which would default to the convention of the platform > where GDB was built to run. > > If you agree with this approach, then the _ANY version of the macros > is not needed. It seems like GDB should know what to use, or at least be able to figure it out (in cases where it really matters). Are we really sure we need an option? How would this option work in practice? If one ever wanted to set it to the non-default value it'd be rather cumbersome to have to set it and then reset it for one-off uses of "the other" path kind.