diff options
author | Doug Evans <dje@google.com> | 2015-05-27 12:17:37 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2015-05-27 12:17:37 -0700 |
commit | 4dcabcc2b5d82dca1089f87e5830a8cd3b5a4bd6 (patch) | |
tree | 6dc6ffe80890ca8559009e1900c1ba446e75a3b7 /gdb/c-exp.y | |
parent | b2e2f908b863c27abb00108a03ebe2598baec55c (diff) | |
download | gdb-4dcabcc2b5d82dca1089f87e5830a8cd3b5a4bd6.zip gdb-4dcabcc2b5d82dca1089f87e5830a8cd3b5a4bd6.tar.gz gdb-4dcabcc2b5d82dca1089f87e5830a8cd3b5a4bd6.tar.bz2 |
Don't ignore domain in nested lookups.
gdb/ChangeLog:
* cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
All callers updated.
(cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
* cp-support.h (cp_lookup_nested_symbol): Update.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 84f3a33..f458545 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -3004,7 +3004,8 @@ classify_inner_name (struct parser_state *par_state, return ERROR; copy = copy_name (yylval.ssym.stoken); - yylval.ssym.sym = cp_lookup_nested_symbol (type, copy, block); + /* N.B. We assume the symbol can only be in VAR_DOMAIN. */ + yylval.ssym.sym = cp_lookup_nested_symbol (type, copy, block, VAR_DOMAIN); /* If no symbol was found, search for a matching base class named COPY. This will allow users to enter qualified names of class members |