aboutsummaryrefslogtreecommitdiff
path: root/gdb/jv-lang.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2002-11-14 00:07:54 +0000
committerDavid Carlton <carlton@bactrian.org>2002-11-14 00:07:54 +0000
commit248e20ab489d52d38f34f2014b6ee6fecc1b726c (patch)
tree09871bb618a9a2be344127ed6c5b2fde80a0af98 /gdb/jv-lang.c
parent7e7f7bd8c5c07d44500adc3542a1abe2f11e50e1 (diff)
downloadgdb-248e20ab489d52d38f34f2014b6ee6fecc1b726c.zip
gdb-248e20ab489d52d38f34f2014b6ee6fecc1b726c.tar.gz
gdb-248e20ab489d52d38f34f2014b6ee6fecc1b726c.tar.bz2
2002-11-13 David Carlton <carlton@math.stanford.edu>
* buildsym.c (finish_block): Initialize block_scope (block) in C++ function blocks. * dwarf2read.c: Delete variable current_namespace. (psymtab_to_symtab_1): Rename current_namespace to processing_current_namespace. (read_namespace): Ditto. * buildsym.h: New variable processing_current_namespace. * block.h: Declarations for block_scope and block_set_scope. * block.c (block_scope): New function. (block_set_scope): New function. * cp-support.h (struct namespace_info): Add 'scope' member. * buildsym.c (finish_block): Replace BLOCK_USING by block_set_using. (end_symtab): Ditto. * block.h: Declaration for block_set_using. * block.c (block_set_using): New function. (block_initialize_namespace): New function. * symtab.c (lookup_symbol_aux_using): Replace BLOCK_USING by block_using. * buildsym.c (finish_block): Set BLOCK_NAMESPACE to NULL, not BLOCK_USING. * jv-lang.c (get_java_class_symtab): Ditto. * block.h: Declaration for block_using. * block.c (block_using): New function. * Makefile.in (block.o): New rule; also add block.c to SFILES and block.o to COMMON_OBS. * block.c: New file. * symtab.c (contained_in): Move to block.c. (block_function): Ditto. * block.h (struct block): Have the language-specific stuff contain a struct namespace_info. (BLOCK_NAMESPACE): New macro. (BLOCK_USING): Delete. * linespec.c (decode_variable): Add comment before decode_variable. * cp-support.h (struct namespace_info): New struct.
Diffstat (limited to 'gdb/jv-lang.c')
-rw-r--r--gdb/jv-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c
index c0daf07..4f60a4a 100644
--- a/gdb/jv-lang.c
+++ b/gdb/jv-lang.c
@@ -117,7 +117,7 @@ get_java_class_symtab (void)
BLOCK_SUPERBLOCK (bl) = NULL;
BLOCK_DICT (bl) = dict_create_linear (&objfile->symbol_obstack,
NULL);
- BLOCK_USING (bl) = NULL;
+ BLOCK_NAMESPACE (bl) = NULL;
BLOCK_GCC_COMPILED (bl) = 0;
BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK) = bl;