From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130597 invoked by alias); 25 Jul 2018 22:47:23 -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 130577 invoked by uid 89); 25 Jul 2018 22:47:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.1 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; Wed, 25 Jul 2018 22:47:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1532558838; 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=zxsTGrHbhQfTYVVHUy/PdofbJ4bq2yg2mH+KoBA2vKM=; b=HFUC/IhU6iTvR14rP6vdswYLaqMjxF9X0rZXARRNAOVoVxS/FhgzX3XheBDiYbbu UUIKJ/ySVRGz2POBczxfweLd1ZbukQajPdE3qeIJjcm+LQZkn7zImtVdTeN2qwSl pN1egyKRixBkVlEXzlSLncLgO1t8borVnwp9JjUKWks=; Received: from ESESBMB504.ericsson.se (Unknown_Domain [153.88.183.117]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id AA.BF.31169.6FDF85B5; Thu, 26 Jul 2018 00:47:18 +0200 (CEST) Received: from ESESSMB501.ericsson.se (153.88.183.162) by ESESBMB504.ericsson.se (153.88.183.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 26 Jul 2018 00:47:17 +0200 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (153.88.183.157) 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 via Frontend Transport; Thu, 26 Jul 2018 00:47:17 +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=LxQM45t+pYeMVel07w9oML1g/kMz62+rw8aPuSDDceY=; b=LctyvegvkJLGzmvlUpXt4NI8nveV5xX8H+xVGl4fyHeyef+LIq/hXq5JmR10H4lUtts7b3v+qCp9CJHu/PUuJqw08DUNuZSm04UAv80OlmzSfxB6In08yuvM6/7wG64Ggl0sb9ObFdPrS9lnfCQ5ecUUr6eauH7iCsdqlI3cKa8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=simon.marchi@ericsson.com; Received: from elxacz23q12.ericsson.se (129.192.64.65) by DM6PR15MB2396.namprd15.prod.outlook.com (2603:10b6:5:8d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Wed, 25 Jul 2018 22:47:15 +0000 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH v2 0/4] Add a DWARF index cache Date: Wed, 25 Jul 2018 22:47:00 -0000 Message-Id: <1532558824-829-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/msg00713.txt.bz2 This is v2 of: https://sourceware.org/ml/gdb-patches/2018-07/msg00230.html I believe this addresses all of Tom's comments. Simon Marchi (4): Make index reading functions more modular Introduce mmap_file function Add DWARF index cache Add doc and news for DWARF index cache gdb/Makefile.in | 3 + gdb/NEWS | 3 + gdb/build-id.h | 11 + gdb/common/pathstuff.c | 24 ++ gdb/common/pathstuff.h | 10 + gdb/common/scoped_mmap.c | 44 +++ gdb/common/scoped_mmap.h | 26 +- gdb/doc/gdb.texinfo | 36 +++ gdb/dwarf-index-cache.c | 498 +++++++++++++++++++++++++++++++++ gdb/dwarf-index-cache.h | 112 ++++++++ gdb/dwarf-index-common.h | 5 + gdb/dwarf-index-write.c | 83 ++++-- 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_mmap-selftests.c | 54 ++++ 19 files changed, 1352 insertions(+), 100 deletions(-) create mode 100644 gdb/common/scoped_mmap.c 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 -- 2.7.4