From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105941 invoked by alias); 9 Jul 2018 21:56:19 -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 105798 invoked by uid 89); 9 Jul 2018 21:56:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.2 spammy= X-HELO: sessmg22.ericsson.net Received: from sessmg22.ericsson.net (HELO sessmg22.ericsson.net) (193.180.251.58) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Jul 2018 21:56:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1531173374; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sVdggR+lQ6lP+TpQV5Jybk1BT7KawC36dRRgesNEnYg=; b=ZwjtyEgl0bqbTKvocvpa0HpD35rr/gSP6Rzp7YAUIdIRAKO5kEHI8KX5GAH2g40a bEGS+3ETTk5sVBKYBSiecnm5Ko70U06gT55mP9hmK4UKmQqr6cJ7muPJaA93+P+Q qbO11vIGDebQvw51+VaC8hYXrYVmrrWeKp1mRECWFEM=; Received: from ESESSMB501.ericsson.se (Unknown_Domain [153.88.183.119]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id B5.A1.31169.EF9D34B5; Mon, 9 Jul 2018 23:56:14 +0200 (CEST) Received: from ESESBMB505.ericsson.se (153.88.183.172) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 9 Jul 2018 23:56:09 +0200 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB505.ericsson.se (153.88.183.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Mon, 9 Jul 2018 23:56:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5Ei1g6hYKTxCC/EMZJYUK+Rp6K3devnzvVE92bmbL2E=; b=k+AaWJJKYKjfghSqXkYouzlHq+5snY3qzEtMZvEafC5d4ND7zuWVu8/O5DiIGqnV1UMHq99HdHVVeAF56NfMWCQm9LXCNJKr+C7yGgOu7B0cvSvmx5W0vi1ezhgAgKzSCaWXqZDnAK0c3b493OB3DFJg+E5NWRxVLOcc4oCvn+s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=simon.marchi@ericsson.com; Received: from elxacz23q12.ca.am.ericsson.se (192.75.88.130) by DM6PR15MB2393.namprd15.prod.outlook.com (2603:10b6:5:8d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.18; Mon, 9 Jul 2018 21:56:05 +0000 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH 0/3] Add a DWARF index cache Date: Mon, 09 Jul 2018 21:56:00 -0000 Message-Id: <1531173351-6351-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: simon.marchi@ericsson.com Received-SPF: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) X-IsSubscribed: yes X-SW-Source: 2018-07/txt/msg00230.txt.bz2 Hi, This is the non-RFC version of https://sourceware.org/ml/gdb-patches/2018-05/msg00216.html I have addressed most of Tom's comments about the original submission, see here for more details: https://sourceware.org/ml/gdb-patches/2018-07/msg00228.html Simon Marchi (3): Make index reading functions more modular Introduce scoped_mmapped_file Add DWARF index cache gdb/Makefile.in | 3 + gdb/build-id.h | 11 + gdb/common/pathstuff.c | 16 + gdb/common/pathstuff.h | 10 + gdb/common/scoped_fd.h | 17 +- gdb/common/scoped_mmapped_file.h | 70 ++++ gdb/dwarf-index-cache.c | 474 ++++++++++++++++++++++++++ gdb/dwarf-index-cache.h | 112 ++++++ gdb/dwarf-index-common.h | 5 + gdb/dwarf-index-write.c | 81 +++-- gdb/dwarf-index-write.h | 34 ++ gdb/dwarf2read.c | 253 ++++++++++---- gdb/dwarf2read.h | 5 + gdb/testsuite/gdb.base/index-cache.c | 23 ++ gdb/testsuite/gdb.base/index-cache.exp | 204 +++++++++++ gdb/testsuite/gdb.base/maint.exp | 24 ++ gdb/unittests/scoped_mmapped_file-selftests.c | 96 ++++++ 17 files changed, 1340 insertions(+), 98 deletions(-) create mode 100644 gdb/common/scoped_mmapped_file.h create mode 100644 gdb/dwarf-index-cache.c create mode 100644 gdb/dwarf-index-cache.h create mode 100644 gdb/dwarf-index-write.h create mode 100644 gdb/testsuite/gdb.base/index-cache.c create mode 100644 gdb/testsuite/gdb.base/index-cache.exp create mode 100644 gdb/unittests/scoped_mmapped_file-selftests.c -- 2.7.4