From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25948 invoked by alias); 13 Oct 2009 05:24:54 -0000 Received: (qmail 25938 invoked by uid 22791); 13 Oct 2009 05:24:52 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Oct 2009 05:24:48 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id EC03A2BAC1E; Tue, 13 Oct 2009 01:24:46 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uSQFbZMVVqB5; Tue, 13 Oct 2009 01:24:46 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 840E42BAC1D; Tue, 13 Oct 2009 01:24:44 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 3D81DF58A0; Mon, 12 Oct 2009 22:24:37 -0700 (PDT) Date: Tue, 13 Oct 2009 05:24:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: danny.backx@scarlet.be, drow@false.org, gdb-patches@sourceware.org Subject: Re: shared lib dos filename style - one more question Message-ID: <20091013052437.GJ5272@adacore.com> References: <1253973110.10921.76.camel@pavilion> <1254946075.10921.178.camel@pavilion> <20091007201145.GA21557@caradoc.them.org> <1255017831.10921.197.camel@pavilion> <20091009173650.GB5272@adacore.com> <1255114781.10921.217.camel@pavilion> <20091010021849.GC5272@adacore.com> <1255378026.10921.251.camel@pavilion> <83ococicct.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83ococicct.fsf@gnu.org> User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2009-10/txt/msg00258.txt.bz2 > > What should unixify() do ? > > 1. /path/to/a -> /path/to/a > > 2. \path/to/a -> /path/to/a > > 3. \path\to\a -> /path/to/a > > 4. c: -> . > > 5. c:\path\to\a -> /path/to/a > > If unixify is supposed to support Windows file semantics, then the > last 2 cases are incorrect, IMO. 4 should return "c:." and 5 > "c:/path/to/a". Actually, I think in this case "unixify" would mean trying to make sense out of Windows path on a Unix machine: The target sent us c:\path\to\dll, and we're trying to find that dll on the host. So best guess on the host is probably /path/to/dll. After that, we should be able to use the root prefix setting, if necessary, in order to find the file on the host. -- Joel