From 1fcb515536dbda348515162ccdb82cb102928798 Mon Sep 17 00:00:00 2001 From: David Carlton Date: Tue, 20 May 2003 03:56:29 +0000 Subject: 2003-05-19 David Carlton 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 * 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. --- gdb/block.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/block.h') diff --git a/gdb/block.h b/gdb/block.h index 17c726d..442fa4a 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -200,13 +200,19 @@ extern struct block *block_for_pc (CORE_ADDR); extern struct block *block_for_pc_sect (CORE_ADDR, asection *); +extern const char *block_scope (const struct block *block); + extern void block_set_scope (struct block *block, const char *scope, struct obstack *obstack); +extern struct using_direct *block_using (const struct block *block); + extern void block_set_using (struct block *block, struct using_direct *using, struct obstack *obstack); extern const struct block *block_static_block (const struct block *block); +extern const struct block *block_global_block (const struct block *block); + #endif /* BLOCK_H */ -- cgit v1.1