diff options
Diffstat (limited to 'gdb/rust-parse.c')
-rw-r--r-- | gdb/rust-parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/rust-parse.c b/gdb/rust-parse.c index b428b97..6ad6542 100644 --- a/gdb/rust-parse.c +++ b/gdb/rust-parse.c @@ -335,7 +335,7 @@ struct rust_parser return std::string (current_string_val.ptr, current_string_val.length); } - /* A pointer to this is installed globally. */ + /* Storage for use while parsing. */ auto_obstack obstack; /* The parser state gdb gave us. */ @@ -1232,14 +1232,14 @@ rust_parser::name_to_operation (const std::string &name) struct block_symbol sym = lookup_symbol (name.c_str (), pstate->expression_context_block, SEARCH_VFT); - if (sym.symbol != nullptr && sym.symbol->aclass () != LOC_TYPEDEF) + if (sym.symbol != nullptr && sym.symbol->loc_class () != LOC_TYPEDEF) return make_operation<var_value_operation> (sym); struct type *type = nullptr; if (sym.symbol != nullptr) { - gdb_assert (sym.symbol->aclass () == LOC_TYPEDEF); + gdb_assert (sym.symbol->loc_class () == LOC_TYPEDEF); type = sym.symbol->type (); } if (type == nullptr) |