From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13728 invoked by alias); 26 Sep 2019 11:41:21 -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 13718 invoked by uid 89); 26 Sep 2019 11:41:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Gm-Message-State:APjAAAX X-HELO: mail-wm1-f48.google.com Received: from mail-wm1-f48.google.com (HELO mail-wm1-f48.google.com) (209.85.128.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 26 Sep 2019 11:41:19 +0000 Received: by mail-wm1-f48.google.com with SMTP id p7so2358195wmp.4 for ; Thu, 26 Sep 2019 04:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aj1zj92Rosndo7Sb8qXRtHhaCdUEbkjcVzL4AGGEX8A=; b=Jgg2JWYV/0WSCVR3rR9LAc0F9bknxnnDKXWbBpG/ui3pvuzX/PZvlZ+Uv5S0ZWuGdx saIxTsWbSOa1JLgcrkTuVhftyosE9GtNJdGjCiLEFlpiVo8kZ82BlzWq9InvOmKfIK7N G55Uf/4ilp05UOSQGbX9Ia0D9JsN9i6St3aBwZxWhcgpHMAXnrDpfHXfoN3Lquqk24A9 qHPqbsMClaIskiMkYNNUNMxDid2ZOxCRkD4yxKxierEJwmDVPjwq9NWs0Sqayx+7tc28 Btr/0KirCNCzx3mwKk09WAqa9veT4OZeCmzchzD/KH7iFZyz94RTdgcwa1hZNwOgaCFR Jq/w== Return-Path: Received: from localhost (host86-128-12-122.range86-128.btcentralplus.com. [86.128.12.122]) by smtp.gmail.com with ESMTPSA id d28sm3404847wrb.95.2019.09.26.04.41.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Sep 2019 04:41:16 -0700 (PDT) From: Andrew Burgess To: gdb-patches Cc: Simon Marchi , Tom Tromey , markus.t.metzger@intel.com, Andrew Burgess Subject: [PATCHv4 0/3] Remove some uses of VEC Date: Thu, 26 Sep 2019 11:41:00 -0000 Message-Id: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00512.txt.bz2 Only patches #1 and #2 have changed. #1 - Update with Markus's feedback, and added new nullptr safe methods to get the size and empty status of the new vector. Use these throughout and remove lots of assertions. #2 - Minor updates from Markus's feedback. Moves a vector allocation out of a loop, and allocates the vector in btrace_maint_update_packets. The code is available for testing from here: https://github.com/T-J-Teru/binutils-gdb/tree/gdb-remove-vec Thanks, Andrew --- Andrew Burgess (3): gdb: Remove a VEC from gdbsupport/btrace-common.h gdb: Change a VEC to std::vector in btrace.{c,h} gdb: Remove a use of VEC from dwarf2read.{c,h} gdb/ChangeLog | 50 +++++++++++++++++++++ gdb/btrace.c | 98 +++++++++++++++++++----------------------- gdb/btrace.h | 5 +-- gdb/dwarf2read.c | 17 ++++---- gdb/dwarf2read.h | 3 -- gdb/gdbserver/ChangeLog | 5 +++ gdb/gdbserver/linux-low.c | 8 +--- gdb/gdbsupport/btrace-common.c | 18 ++++---- gdb/gdbsupport/btrace-common.h | 38 ++++++++++++---- gdb/nat/linux-btrace.c | 16 +++---- 10 files changed, 157 insertions(+), 101 deletions(-) -- 2.14.5