/* Obstack wrapper for GDB.
- Copyright (C) 2013-2014 Free Software Foundation, Inc.
+ Copyright (C) 2013-2015 Free Software Foundation, Inc.
This file is part of GDB.
return obstack_finish (obstackp);
}
+
+/* See gdb_obstack.h. */
+
+char *
+obstack_strdup (struct obstack *obstackp, const char *string)
+{
+ char *obstring = obstack_alloc (obstackp, strlen (string) + 1);
+ strcpy (obstring, string);
+ return obstring;
+}