From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12848 invoked by alias); 14 Oct 2009 20:18:22 -0000 Received: (qmail 12835 invoked by uid 22791); 14 Oct 2009 20:18:20 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: sourceware.org Received: from eir.is.scarlet.be (HELO eir.is.scarlet.be) (193.74.71.27) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Oct 2009 20:18:15 +0000 Received: from [172.17.1.10] (ip-81-11-245-37.dsl.scarlet.be [81.11.245.37]) by eir.is.scarlet.be (8.14.2/8.14.2) with ESMTP id n9EKH0jZ027118; Wed, 14 Oct 2009 22:17:01 +0200 Subject: Re: shared lib dos filename style - one more question From: Danny Backx Reply-To: danny.backx@scarlet.be To: gdb-patches Cc: Eli Zaretskii , Joel Brobecker , Pedro Alves , Daniel Jacobowitz In-Reply-To: <20091012204451.GA17607@caradoc.them.org> 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> <20091012204451.GA17607@caradoc.them.org> Content-Type: text/plain Date: Wed, 14 Oct 2009 20:18:00 -0000 Message-Id: <1255551583.10921.271.camel@pavilion> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-DCC-scarlet.be-Metrics: eir 20001; Body=6 Fuz1=6 Fuz2=6 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/msg00316.txt.bz2 On Tue, 2009-10-13 at 20:25 +0200, Eli Zaretskii wrote: > > > /sysroot/c:/path/to/a > > > /sysroot/d:/path/to/b > > > > Good point. Either form works for me. > > I vote for the second, because it covers the case that the colon is > part of a real Unix file name. Ok so I guess the table becomes : > 1. /path/to/a -> /path/to/a > 2. \path/to/a -> /path/to/a > 3. \path\to\a -> /path/to/a > 4. c: -> c: > 5. c:\path\to\a -> c:/path/to/a so the only thing that happens is backslash to forward slash translation. Right ? On Mon, 2009-10-12 at 16:44 -0400, Daniel Jacobowitz wrote: > Anyway, I'd prefer a global solution rather than one local to > solib_find. For instance, we've had trouble with FILENAME_CMP > depending on which host the program was *compiled* on. Do you mean that the call to unixify() should happen in openp() instead of in solib_find() ? There's also a call to open() so I guess this should be changed as well. Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info