linux-mips-low.c: Change "private" variable name
[deliverable/binutils-gdb.git] / gdb / gdbarch.c
index 94e457adae4c62566fbce4515aa2f5583aeb9258..f04eef99e0d341b012ec4bbec58ed57661e20321 100644 (file)
@@ -449,6 +449,14 @@ gdbarch_obstack_zalloc (struct gdbarch *arch, long size)
   return data;
 }
 
+/* See gdbarch.h.  */
+
+char *
+gdbarch_obstack_strdup (struct gdbarch *arch, const char *string)
+{
+  return obstack_strdup (arch->obstack, string);
+}
+
 
 /* Free a gdbarch struct.  This should never happen in normal
    operation --- once you've created a gdbarch, you keep it around.
@@ -4894,7 +4902,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.023967 seconds and 4 git commands to generate.