From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2527 invoked by alias); 18 Dec 2014 18:14:51 -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 2509 invoked by uid 89); 18 Dec 2014 18:14:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Thu, 18 Dec 2014 18:14:49 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBIIEbh8026626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 18 Dec 2014 13:14:37 -0500 Received: from host2.jankratochvil.net (ovpn-116-142.ams2.redhat.com [10.36.116.142]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBIIEX5x024372 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 18 Dec 2014 13:14:35 -0500 Date: Thu, 18 Dec 2014 18:14:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: Kai Tietz , Steve Ellcey , Eli Zaretskii , brobecker@adacore.com, yao@codesourcery.com, gdb-patches@sourceware.org Subject: Re: [patch] compile: rm -rf -> ftw()+rmdir()+unlink() [Re: [patch] compile: Fix MinGW build] Message-ID: <20141218181432.GA19996@host2.jankratochvil.net> References: <20141217210144.GA26674@host2.jankratochvil.net> <549206B1.40902@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <549206B1.40902@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00542.txt.bz2 On Wed, 17 Dec 2014 23:41:53 +0100, Pedro Alves wrote: > See https://www.gnu.org/software/gnulib/manual/html_node/ftw.html: > > "This function is missing on some platforms: Mac OS X 10.3, FreeBSD 5.2.1, > NetBSD 3.0, Minix 3.1.8, mingw, MSVC 9, BeOS. " This list does not say much and it is even obsolete, at least "mingw" supports ftw(); although Eli disagrees in: https://sourceware.org/ml/gdb-patches/2014-12/msg00540.html On MacOS X GDB does not work anyway, FreeBSD latest stable release is 10.1 so 5.2.1 seems irrelevant, NetBSD 6.1.5 vs. 3.0 likewise, for other OS I have no idea if they are supported by GDB and nobody knows - configure.{host,tgt} triplets naming are too cryptic to quickly check it by someone not familiar with that platform and there is no official list of supported platforms I asked for recently at least in: Message-ID: <20140817211647.GA17152@host2.jankratochvil.net> On Sun, 17 Aug 2014 23:16:47 +0200, Jan Kratochvil wrote: # This is one of the general problems of GDB that one cannot do any change # affecting platforms which one cannot (or at least not easily enough) test on. # # Platform not automatically being tested by Jenkins for any patch submitted to # Gerrit should be officially unsupported. > So it seems to me that we should use the fts API instead of ftw. And then > we'll either need to import the gnulib module, or start out with an > autoconf check. As global maintainer Eli asked for ftw()->fts() (despite I do not see there valid technical argument in that mail myself) going to implement it; otherwise I would not see from the platform list at https://www.gnu.org/software/gnulib/manual/html_node/ftw.html if ftw() is really supported on all GDB hosts or not. Jan