diff options
author | Sami Wagiaalla <swagiaal@redhat.com> | 2010-01-26 16:47:35 +0000 |
---|---|---|
committer | Sami Wagiaalla <swagiaal@redhat.com> | 2010-01-26 16:47:35 +0000 |
commit | b14e635ec430d1a84fa9061bcd404ef76cf5bf11 (patch) | |
tree | 25a1e65300e85c1c2cd240f393c248117c083de4 /gdb/cp-support.h | |
parent | 8540c487c665cd07366b3d1fa199af33fa5b3691 (diff) | |
download | gdb-b14e635ec430d1a84fa9061bcd404ef76cf5bf11.zip gdb-b14e635ec430d1a84fa9061bcd404ef76cf5bf11.tar.gz gdb-b14e635ec430d1a84fa9061bcd404ef76cf5bf11.tar.bz2 |
2010-01-14 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/nsrecurs.exp: New test.
* gdb.cp/nsrecurs.cc: New test program.
* gdb.cp/nsstress.exp: New test.
* gdb.cp/nsstress.cc: New test program.
* gdb.cp/nsdecl.exp: New test.
* gdb.cp/nsdecl.cc: New test program.
2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
* cp-namespace.c (cp_lookup_symbol_namespace): Added
search_parent argument.
(cp_add_using): Initialize 'searched' field.
(reset_directive_searched): New function.
* cp-support.h: Add 'searched' field to using_direct struct.
(cp_lookup_symbol_imports): Ditto.
* cp-namespace.c (cp_lookup_symbol_imports): Ditto.
Perform recursive search.
Implement non parent search.
* valops.c (value_maybe_namespace_elt): Updated.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r-- | gdb/cp-support.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h index a629955..33b1b44 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -47,6 +47,9 @@ struct using_direct char *import_src; char *import_dest; struct using_direct *next; + + /* Used during import search to temporarily mark this node as searched. */ + int searched; }; @@ -107,7 +110,8 @@ extern struct symbol *cp_lookup_symbol_namespace (const char *namespace, const char *name, const char *linkage_name, const struct block *block, - const domain_enum domain); + const domain_enum domain, + const int search_parents); extern struct type *cp_lookup_nested_type (struct type *parent_type, const char *nested_name, |