Fix gdbarch.c build error
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 26 Aug 2015 21:31:47 +0000 (17:31 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 26 Aug 2015 21:31:47 +0000 (17:31 -0400)
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
gdb/gdbarch.c
gdb/gdbarch.sh

index 154228ff8351e30771902b7355f2689296aed87d..25402c8014a988bb968426b3d36039eaa63ab108 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 94e457adae4c62566fbce4515aa2f5583aeb9258..0d4142b94a7a083ef02baf01085d4c0a355d04e8 100644 (file)
@@ -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;
 }
index 5831b7b78a2099fba474df075e78769d4bbf5283..34e6a74a2e5bbc41535429e3aa8f84b1a00f4864 100755 (executable)
@@ -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;
 }
This page took 0.049692 seconds and 4 git commands to generate.