From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115208 invoked by alias); 23 Sep 2019 22:09:45 -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 115157 invoked by uid 89); 23 Sep 2019 22:09:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.5 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=ch X-HELO: mail-wm1-f65.google.com Received: from mail-wm1-f65.google.com (HELO mail-wm1-f65.google.com) (209.85.128.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Sep 2019 22:09:44 +0000 Received: by mail-wm1-f65.google.com with SMTP id 3so10872398wmi.3 for ; Mon, 23 Sep 2019 15:09:43 -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; bh=5JkVuarkXE835DCxVDaxdoTFLDJEjAwCXBVeZufCEFg=; b=Rpv9bhnEv5SI9we6iAQQ5DUiup/lkDKr6IS89E4/YlIYVmWiqJYZUZx5XsAAaloLnd pq9PJAkeyCSMerBmc1VB2QPLKSGXQZZ1+96v5eypyC7iFuOEZSokZzlQYrw0Q0jAuTO+ zIVwUDXOCIF/bBVm9YlNhkQYn5rNWsyFA/K/sfVVBiWLDOo3Fm9yTzAEufFih8BqpbUP RslsJ9pXs4ebYEPA970AwGIiRr76p6Cf/tvOBHGkLIfARTWoOfEaYKyPq7vo4r/3lKyK YvEOpgDHOCIVxVsuy9OM6TcV6exYYW1zsmSik2uWcGU9BjIIqSrMkfipCo4cjd3P6dNT /7oQ== Return-Path: Received: from localhost (host86-128-12-122.range86-128.btcentralplus.com. [86.128.12.122]) by smtp.gmail.com with ESMTPSA id u11sm11918146wmd.32.2019.09.23.15.09.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Sep 2019 15:09:41 -0700 (PDT) From: Andrew Burgess To: gdb-patches Cc: Andrew Burgess Subject: [PATCH 0/2] Remove 2 uses of VEC from gdb Date: Mon, 23 Sep 2019 22:09:00 -0000 Message-Id: X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00455.txt.bz2 Removes 2 uses of VEC from GDB. I've taken a straight forward approach to the replacement, trying as far as possible to do a like for like replacement with minimal, or no refactoring. As a result the code isn't always the best C++ possible - specifically, I end up with pointer to std::vector instead of a straight up std::vector. I don't know if people would prefer a redesign of the code at the same time, or if we're happy to just be rid of some more uses of VEC for now, and leave any redesign for later (probably not me though). Thanks, Andrew --- Andrew Burgess (2): gdb: Remove a VEC from gdbsupport/btrace-common.h gdb: Change a VEC to std::vector in btrace.{c,h} gdb/ChangeLog | 33 +++++++++++++++++ gdb/btrace.c | 84 ++++++++++++++++++++---------------------- gdb/btrace.h | 3 +- gdb/gdbserver/ChangeLog | 5 +++ gdb/gdbserver/linux-low.c | 8 +--- gdb/gdbsupport/btrace-common.c | 17 ++++----- gdb/gdbsupport/btrace-common.h | 20 +++++++--- gdb/nat/linux-btrace.c | 14 +++---- 8 files changed, 109 insertions(+), 75 deletions(-) -- 2.14.5