From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29590 invoked by alias); 6 Jan 2008 19:38:16 -0000 Received: (qmail 29580 invoked by uid 22791); 6 Jan 2008 19:38:16 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (213.8.233.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 06 Jan 2008 19:37:56 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-143-222.inter.net.il [80.230.143.222]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EOM93271 (AUTH halo1); Sun, 6 Jan 2008 21:37:17 +0200 (IST) Date: Sun, 06 Jan 2008 19:38:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz , gdb-patches@sources.redhat.com CC: ARistovski@qnx.com, gcc-patches@gcc.gnu.org, RMansfield@qnx.com In-reply-to: <20080106054030.GA10410@caradoc.them.org> (message from Daniel Jacobowitz on Sun, 6 Jan 2008 00:40:30 -0500) Subject: Re: [patch] IS_ABSOLUTE_PATH to handle both DOS and POSIX path st yles Reply-to: Eli Zaretskii 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/msg00099.txt.bz2 [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.