diff options
author | David Carlton <carlton@bactrian.org> | 2003-05-20 03:56:29 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2003-05-20 03:56:29 +0000 |
commit | 1fcb515536dbda348515162ccdb82cb102928798 (patch) | |
tree | 025f43d1ac23661032fceed14c7ed49de57c2f09 /gdb/cp-support.h | |
parent | 916f5d137a4e411facadf4ade434a6eba27b6ea5 (diff) | |
download | gdb-1fcb515536dbda348515162ccdb82cb102928798.zip gdb-1fcb515536dbda348515162ccdb82cb102928798.tar.gz gdb-1fcb515536dbda348515162ccdb82cb102928798.tar.bz2 |
2003-05-19 David Carlton <carlton@bactrian.org>
Partial fix for PR c++/827.
* cp-support.h: Include symtab.h.
Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
* cp-namespace.c: Update contributors.
(cp_lookup_symbol_nonlocal): New.
(lookup_namespace_scope, cp_lookup_symbol_namespace)
(lookup_symbol_file): Ditto.
* c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
* block.h: Declare block_scope, block_using, block_global_block.
* block.c (block_scope): New.
(block_using, block_global_block): Ditto.
* Makefile.in (cp_support_h): Depend on symtab_h.
* config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
2003-05-19 David Carlton <carlton@bactrian.org>
* gdb.c++/namespace.exp: Add namespace scope and anonymous
namespace tests.
Bump copyright date.
* gdb.c++/namespace.cc: Add anonymous namespace and namespace C.
(main): Call C::D::marker2.
* gdb.c++/namespace1.cc: New file.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r-- | gdb/cp-support.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 76e842b..952d6a2 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -24,11 +24,14 @@ #ifndef CP_SUPPORT_H #define CP_SUPPORT_H +/* We need this for 'domain_enum', alas... */ + +#include "symtab.h" + /* Opaque declarations. */ struct obstack; struct block; -struct symbol; /* This struct is designed to store data from using directives. It says that names from namespace INNER should be visible within @@ -78,4 +81,17 @@ extern void cp_set_block_scope (const struct symbol *symbol, extern void cp_scan_for_anonymous_namespaces (const struct symbol *symbol); +extern struct symbol *cp_lookup_symbol_nonlocal (const char *name, + const char *linkage_name, + const struct block *block, + const domain_enum domain, + struct symtab **symtab); + +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, + struct symtab **symtab); + #endif /* CP_SUPPORT_H */ |