From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89113 invoked by alias); 19 Jun 2015 08:32:08 -0000 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 Received: (qmail 89096 invoked by uid 89); 19 Jun 2015 08:32:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 19 Jun 2015 08:32:06 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 8401938AB58; Fri, 19 Jun 2015 08:32:05 +0000 (UTC) Received: from blade.nx (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5J8W4dr017921; Fri, 19 Jun 2015 04:32:05 -0400 Received: by blade.nx (Postfix, from userid 1000) id 64FE4262FE8; Fri, 19 Jun 2015 09:32:04 +0100 (BST) Date: Fri, 19 Jun 2015 08:32:00 -0000 From: Gary Benson To: Eli Zaretskii Cc: gdb-patches@sourceware.org, cedric.buissart@gmail.com Subject: Re: [PATCH 1/5] Introduce build_debug_file_name Message-ID: <20150619083204.GA24095@blade.nx> References: <1434447768-17328-1-git-send-email-gbenson@redhat.com> <1434447768-17328-2-git-send-email-gbenson@redhat.com> <83zj3zn21q.fsf@gnu.org> <20150617094734.GA9671@blade.nx> <83a8vymgmg.fsf@gnu.org> <20150618105528.GA2644@blade.nx> <83fv5pkyi1.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83fv5pkyi1.fsf@gnu.org> X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00402.txt.bz2 Eli Zaretskii wrote: > > Date: Thu, 18 Jun 2015 11:55:28 +0100 > > From: Gary Benson > > Cc: gdb-patches@sourceware.org, cedric.buissart@gmail.com > > > > > But won't we produce "d://foo/bar" as result? > > > > No. build_debug_file_name strips both leading and trailing slashes. > > The only ways to get a double slash from build_debug_file_name is to > > pass one in in the middle of a string. > > > > build_debug_file_name ("d:", "foo", "bar") -> "d:/foo/bar" > > build_debug_file_name ("d:/", "/foo", "bar") -> "d:/foo/bar" > > build_debug_file_name ("d:///", "///foo///", "bar") -> "d:/foo/bar" > > > > but > > > > build_debug_file_name("d://foo", "bar") -> "d://foo/bar" > > > > > > I don't believe this series should be blocked unless it breaks > > > > something that actually worked before. > > > > > > If a fix is very simple, why not make it? > > > > I don't understand, what are you asking me to fix? > > Nothing, given the above. > > Thanks. Cool, thanks Eli. Cheers, Gary -- http://gbenson.net/