summaryrefslogtreecommitdiff
path: root/gdb/cp-support.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-06-13 16:10:05 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-06-13 16:10:05 +0000
commit6b7c08a27abe873cdd61accfecc3040a9c163b13 (patch)
tree9f45eb4d40176fbddd96898365b29ee4b7763b60 /gdb/cp-support.h
parent724254963b7ecf06fb4ebdc24f66859fc814c0c5 (diff)
downloadgdb-6b7c08a27abe873cdd61accfecc3040a9c163b13.tar.gz
gdb/
PR c++/14177 - Fix parsing TYPENAME:: in parentheses. * c-exp.y (classify_inner_name): Remove caller assumptions in the function comment. Return ERROR for unresolved cases. Implement returning proper NAME. (yylex): Accept also NAME from classify_inner_name. * cp-namespace.c (cp_lookup_nested_type): Rename to ... (cp_lookup_nested_symbol): ... here. Return any found symbol, not just LOC_TYPEDEF type. * cp-support.h (cp_lookup_nested_type): Update its declaration. gdb/testsuite/ PR c++/14177 - Fix parsing TYPENAME:: in parentheses. * gdb.cp/cpexprs.cc (class CV, CV::i, ATTRIBUTE_USED, CV_f): New. (test_function): Call CV_f. * gdb.cp/cpexprs.exp (p 'CV::m(int)', p CV::m(int)) (p 'CV::m(int) const', p CV::m(int) const, p 'CV::m(int) volatile') (p CV::m(int) volatile, p 'CV::m(int) const volatile') (p CV::m(int) const volatile, p CV_f(int), p CV_f(CV::t)) (p CV_f(CV::i)): New tests.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r--gdb/cp-support.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h
index 9c150f80159..0d2b5131b54 100644
--- a/gdb/cp-support.h
+++ b/gdb/cp-support.h
@@ -213,9 +213,9 @@ extern struct symbol *cp_lookup_symbol_imports_or_template
const struct block *block,
const domain_enum domain);
-extern struct type *cp_lookup_nested_type (struct type *parent_type,
- const char *nested_name,
- const struct block *block);
+extern struct symbol *cp_lookup_nested_symbol (struct type *parent_type,
+ const char *nested_name,
+ const struct block *block);
struct type *cp_lookup_transparent_type (const char *name);