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.
This commit is contained in:
Simon Marchi 2015-08-26 17:31:47 -04:00
parent 8d7493201c
commit 1dc7a62350
3 changed files with 7 additions and 2 deletions

View 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.

View 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;
}

View File

@ -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;
}