From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85802 invoked by alias); 1 Aug 2018 01:40:35 -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 85782 invoked by uid 89); 1 Aug 2018 01:40:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=expressive X-HELO: sessmg23.ericsson.net Received: from sessmg23.ericsson.net (HELO sessmg23.ericsson.net) (193.180.251.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 01 Aug 2018 01:40:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1533087631; 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=7+pOaf/+G32j+pzI/3WFM4lcELLrYkehPxz/gSIhCs0=; b=IjP35UM2a+E1RRKkXnKDB45lCykFIAf/1hgy+CVvmcO/5oJ1TRXjubstkJ2WOpLk 7XZqqkJ298jtiahtUdpUY1YdbxGEsHStMC6sq3PxdsMUfjYK4B46qCe8YpksrxIt RYo3twcRiY/21AhNoXwrEd0h/uOEGaN+Z8XEBY556iA=; Received: from ESESBMB503.ericsson.se (Unknown_Domain [153.88.183.116]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id A2.3C.22015.F8F016B5; Wed, 1 Aug 2018 03:40:31 +0200 (CEST) Received: from ESESBMB503.ericsson.se (153.88.183.170) by ESESBMB503.ericsson.se (153.88.183.170) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 1 Aug 2018 03:40:30 +0200 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB503.ericsson.se (153.88.183.170) 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; Wed, 1 Aug 2018 03:40:30 +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=5LGzdoizMzCam2kcCp2COSfgho0opvllCd0CDc+QUcw=; b=X0smMNYKt84jxtEk0yoPmkk179Y1eYnb4eJpwiAQDGwB+TLZrbQijXaK/yPjgpqE63ijXg8okY4xws2kzTPpp2tuRU+XrEapZJ3CxqhGNM8IHY2ATOXbYuYU5TJWQj9+wytiGJdPnDXfP+kZJ4PSsi/QMiFBq0KXJAepsDrsOSM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=simon.marchi@ericsson.com; Received: from [10.0.0.110] (192.222.164.54) by SN6PR15MB2398.namprd15.prod.outlook.com (2603:10b6:805:24::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.19; Wed, 1 Aug 2018 01:40:28 +0000 Subject: Re: [PATCH 1/8] Add block range data structure for blocks with non-contiguous address ranges To: Kevin Buettner , References: <20180625233239.49dc52ea@pinnacle.lan> <20180625234210.1dbf3a9a@pinnacle.lan> From: Simon Marchi Message-ID: <36f3f8b6-c1bf-a9af-f604-ac147341d28f@ericsson.com> Date: Wed, 01 Aug 2018 01:40:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180625234210.1dbf3a9a@pinnacle.lan> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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-08/txt/msg00002.txt.bz2 On 2018-06-26 02:42 AM, Kevin Buettner wrote: > @@ -322,4 +401,9 @@ extern int block_find_non_opaque_type_preferred (struct symbol *sym, > (sym) != NULL; \ > (sym) = block_iter_match_next ((name), &(iter))) > > +/* Given a vector of pairs, allocate and build an obstack allocated > + blockranges struct for a block. */ > +struct blockranges *make_blockranges (struct objfile *objfile, > + std::vector> &); Oh, also, this vector could be a vector of struct blockrange. It would be more expressive than a vector of pairs. Simon