gdb/fortran: Add new 'info modules' command
[deliverable/binutils-gdb.git] / gdb / rust-exp.y
index ddbf1d4bba312769845ced9d79ebec058135cbe1..a15e0de12fd2439e87123ed1d1677c5b1730d1ec 100644 (file)
@@ -40,7 +40,7 @@
 #include "parser-defs.h"
 #include "gdbsupport/selftest.h"
 #include "value.h"
-#include "gdbsupport/vec.h"
+#include "gdbarch.h"
 
 #define GDB_YY_REMAP_PREFIX rust
 #include "yy-remap.h"
@@ -1010,7 +1010,7 @@ static const struct token_info operator_tokens[] =
 const char *
 rust_parser::copy_name (const char *name, int len)
 {
-  return (const char *) obstack_copy0 (&obstack, name, len);
+  return obstack_strndup (&obstack, name, len);
 }
 
 /* Helper function to make an stoken from a C string.  */
This page took 0.028333 seconds and 4 git commands to generate.