From patchwork Wed Aug 26 21:33:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 8469 Received: (qmail 126748 invoked by alias); 26 Aug 2015 21:33:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 126730 invoked by uid 89); 26 Aug 2015 21:33:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 26 Aug 2015 21:33:11 +0000 Received: from EUSAAHC001.ericsson.se (Unknown_Domain [147.117.188.75]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id FA.80.32596.AD2DDD55; Wed, 26 Aug 2015 16:53:15 +0200 (CEST) Received: from [142.133.110.144] (147.117.188.8) by smtp-am.internal.ericsson.com (147.117.188.77) with Microsoft SMTP Server id 14.3.210.2; Wed, 26 Aug 2015 17:33:08 -0400 Message-ID: <55DE3094.4030806@ericsson.com> Date: Wed, 26 Aug 2015 17:33:08 -0400 From: Simon Marchi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Subject: Re: [PATCH] Replace some xmalloc-family functions with XNEW-family ones References: <1439848395-1869-1-git-send-email-simon.marchi@ericsson.com> <86614d3rsu.fsf@gmail.com> <55D4A144.70802@ericsson.com> <55DE1272.5@ericsson.com> <55DE1720.20502@redhat.com> <55DE2D78.1060104@ericsson.com> In-Reply-To: <55DE2D78.1060104@ericsson.com> X-IsSubscribed: yes On 15-08-26 05:19 PM, Simon Marchi wrote: > Alright, pushed a slightly modified (rebased) version: I had a little mistake, result of some bad git handling. I pushed this fix: From 1dc7a6235090327d7b5586f85e6115c3cd13ed83 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 26 Aug 2015 17:31:47 -0400 Subject: [PATCH] Fix gdbarch.c build error I made a mistake while handling my previous patch. A change in gdbarch causes a build failure. gdb/ChangeLog: * gdbarch.sh (append_name): Fix type in XRESIZEVEC. * gdbarch.c: Re-generate. --- gdb/ChangeLog | 5 +++++ gdb/gdbarch.c | 2 +- gdb/gdbarch.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 154228f..25402c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-08-26 Simon Marchi + * gdbarch.sh (append_name): Fix type in XRESIZEVEC. + * gdbarch.c: Re-generate. + +2015-08-26 Simon Marchi + * aarch64-linux-nat.c (aarch64_add_process): Likewise. * aarch64-tdep.c (aarch64_gdbarch_init): Likewise. * ada-exp.y (write_ambiguous_var): Likewise. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 94e457a..0d4142b 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -4894,7 +4894,7 @@ static struct gdbarch_registration *gdbarch_registry = NULL; static void append_name (const char ***buf, int *nr, const char *name) { - *buf = XRESIZEVEC (const char **, *buf, *nr + 1); + *buf = XRESIZEVEC (const char *, *buf, *nr + 1); (*buf)[*nr] = name; *nr += 1; } diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 5831b7b..34e6a74 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -2201,7 +2201,7 @@ static struct gdbarch_registration *gdbarch_registry = NULL; static void append_name (const char ***buf, int *nr, const char *name) { - *buf = XRESIZEVEC (const char **, *buf, *nr + 1); + *buf = XRESIZEVEC (const char *, *buf, *nr + 1); (*buf)[*nr] = name; *nr += 1; }