From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31838 invoked by alias); 15 May 2008 18:56:04 -0000 Received: (qmail 31665 invoked by uid 22791); 15 May 2008 18:55:55 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 15 May 2008 18:55:35 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jwibu-0004As-U9 for gdb-patches@sources.redhat.com; Thu, 15 May 2008 18:55:26 +0000 Received: from entropy.qnx.com ([209.226.137.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 18:55:26 +0000 Received: from aristovski by entropy.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 18:55:26 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: Re: [RFC] new substitute path when loading feature Date: Thu, 15 May 2008 19:35:00 -0000 Message-ID: <482C870D.5030107@qnx.com> References: <20080513190818.GA13776@caradoc.them.org> <4829E7DA.3010606@qnx.com> <20080513192041.GA14593@caradoc.them.org> <20080515160551.GA24101@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <20080515160551.GA24101@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-05/txt/msg00480.txt.bz2 Daniel Jacobowitz wrote: > Does this fix the same problem you're working on? Does anyone see a > problem with the compromises I made here? Eli, I'd appreciate your > opinion. > I was considering something like this (except I changed the IS_ABSOLUTE_PATH macro to a be defined as a function call) but then didn't like the idea... there was also opposition to that approach when I brought it up on the mailing list. But yes, this can be a solution too, although I expect that unix purists will complain about the possibility of having directory names with colon on POSIX file systems (GDB_IS_ABSOLUTE_PATH could return wrong result in such cases). The same stands for backslashes. To sum it up: in our case it (probably - haven't tested) does fix our common-scenario, but not sure if it's a 'proper' solution - probably not; maybe if it was wrapped in an option as was suggested in my first attempt at 'universal' IS_ABSOLUTE_PATH?