Use gdbarch obstack to allocate the TYPE_NAME string in arch_type
[deliverable/binutils-gdb.git] / gdb / gdbarch.c
index 0d4142b94a7a083ef02baf01085d4c0a355d04e8..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.
This page took 0.023999 seconds and 4 git commands to generate.