public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@ericsson.com>
To: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Replace some xmalloc-family functions with XNEW-family ones
Date: Wed, 26 Aug 2015 21:33:00 -0000	[thread overview]
Message-ID: <55DE3094.4030806@ericsson.com> (raw)
In-Reply-To: <55DE2D78.1060104@ericsson.com>

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 <simon.marchi@ericsson.com>
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  <simon.marchi@ericsson.com>

+	* gdbarch.sh (append_name): Fix type in XRESIZEVEC.
+	* gdbarch.c: Re-generate.
+
+2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
+
 	* 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;
 }
-- 
2.1.4

  reply	other threads:[~2015-08-26 21:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-17 21:53 Simon Marchi
2015-08-18  8:49 ` Yao Qi
2015-08-18 11:13   ` Pedro Alves
2015-08-18 12:56     ` Yao Qi
2015-08-18 13:09   ` Antoine Tremblay
2015-08-19 15:31   ` Simon Marchi
2015-08-26 19:24     ` Simon Marchi
2015-08-26 19:44       ` Pedro Alves
2015-08-26 21:20         ` Simon Marchi
2015-08-26 21:33           ` Simon Marchi [this message]
2015-08-27  9:54     ` Yao Qi
2015-08-27 16:56       ` DJ Delorie
2015-08-27 17:48 Doug Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DE3094.4030806@ericsson.com \
    --to=simon.marchi@ericsson.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).