projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into merge-job
[deliverable/binutils-gdb.git]
/
gdb
/
rust-exp.y
diff --git
a/gdb/rust-exp.y
b/gdb/rust-exp.y
index 15932638397d0854e41f2b73b359147076925189..3ab9e26246c2f8bd4e56f0e5151367d100c3909a 100644
(file)
--- a/
gdb/rust-exp.y
+++ b/
gdb/rust-exp.y
@@
-1,5
+1,5
@@
/* Bison parser for Rust expressions, for GDB.
/* Bison parser for Rust expressions, for GDB.
- Copyright (C) 2016-20
19
Free Software Foundation, Inc.
+ Copyright (C) 2016-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-38,9
+38,9
@@
#include "gdb_regex.h"
#include "rust-lang.h"
#include "parser-defs.h"
#include "gdb_regex.h"
#include "rust-lang.h"
#include "parser-defs.h"
-#include "
common
/selftest.h"
+#include "
gdbsupport
/selftest.h"
#include "value.h"
#include "value.h"
-#include "
common/vec
.h"
+#include "
gdbarch
.h"
#define GDB_YY_REMAP_PREFIX rust
#include "yy-remap.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)
{
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. */
}
/* Helper function to make an stoken from a C string. */
@@
-2024,7
+2024,7
@@
rust_parser::rust_lookup_type (const char *name, const struct block *block)
return SYMBOL_TYPE (result.symbol);
}
return SYMBOL_TYPE (result.symbol);
}
- type = lookup_typename (language (),
arch (),
name, NULL, 1);
+ type = lookup_typename (language (), name, NULL, 1);
if (type != NULL)
return type;
if (type != NULL)
return type;
This page took
0.032207 seconds
and
4
git commands to generate.