From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128637 invoked by alias); 14 Jan 2020 18:17:01 -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 128620 invoked by uid 89); 14 Jan 2020 18:17:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: gateway31.websitewelcome.com Received: from gateway31.websitewelcome.com (HELO gateway31.websitewelcome.com) (192.185.143.36) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Jan 2020 18:16:50 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 621ED39E42 for ; Tue, 14 Jan 2020 12:16:49 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id rQkDiWAwDHunhrQkDieNHs; Tue, 14 Jan 2020 12:16:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=S8YnFdFXJiwJHx3m52uxJMhFKvw9jQGFkRXqTE9WI+E=; b=hQOmOJV7SfVzyG0twBgmF5H0sU hEDMHd2CpXg6tnKOX3wU+ssSCxrbcdXZcBbh0hX7k+5EkITEy8htvE1VQkZKZVWp4iq8300oZXcs/ 6eW1MU5w7/Amu7D8AfN35Mxji; Received: from 75-166-123-50.hlrn.qwest.net ([75.166.123.50]:48336 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1irQkC-001Tpx-Vp; Tue, 14 Jan 2020 11:16:49 -0700 From: Tom Tromey To: Tom Tromey Cc: Christian Biesinger , Simon Marchi , gdb-patches@sourceware.org, palves@redhat.com Subject: Re: gnulib stat problem References: <20191216182208.22D882816F@gnutoolchain-gerrit.osci.io> <87imle7z8x.fsf_-_@tromey.com> Date: Tue, 14 Jan 2020 19:06:00 -0000 In-Reply-To: <87imle7z8x.fsf_-_@tromey.com> (Tom Tromey's message of "Tue, 14 Jan 2020 09:56:46 -0700") Message-ID: <87eew19a40.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2020-01/txt/msg00384.txt.bz2 Tom> Maybe gdb could *only* use bfd_get_mtime when it matters. This would Tom> mean changing gdb_bfd_open to create a BFD before checking the cache, Tom> but maybe that's not very expensive. I implemented this. This approach seems pretty nice. Also, I discovered that bfd_stat exists, which means we could also put target BFDs into the cache -- currently we only put local ones there. So, this seems like another plus (though I haven't implemented this caching yet), and provides an additional reason to go this route. Tom