From: Simon Marchi Date: Wed, 26 Aug 2015 21:31:47 +0000 (-0400) Subject: Fix gdbarch.c build error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dc7a6235090327d7b5586f85e6115c3cd13ed83;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 154228ff835..25402c8014a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 94e457adae4..0d4142b94a7 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 5831b7b78a2..34e6a74a2e5 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; }