* block.c: Whitespace cleanup.
* buildsym.c (finish_block): Delete #if'd out code.
* symtab.c (lookup_symbol_namespace): Add comment.
* dwarf2read.c (scan_partial_symbols): Fix typo.
2002-11-19 David Carlton <carlton@math.stanford.edu>
* gdb.c++/namespace.exp: Delete FIXME comment.
Fill in PR's for setup_kfail's.
Fiddle with comments at top of file.
+2002-11-19 David Carlton <carlton@math.stanford.edu>
+
+ * block.c: Whitespace cleanup.
+ * buildsym.c (finish_block): Delete #if'd out code.
+ * symtab.c (lookup_symbol_namespace): Add comment.
+ * dwarf2read.c (scan_partial_symbols): Fix typo.
+
2002-11-15 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_symbol_aux): Get at static block via
return using;
}
-
/* Set block_using (BLOCK) to USING; if needed, allocate memory via
OBSTACK. */
want to make sure I'm not running into surprises. */
gdb_assert (*next == '\0');
}
-
-#if 0
- for (next = cp_find_first_component (name);
- *next == ':';
- /* The '+ 2' is to skip the '::'. */
- next = cp_find_first_component (next + 2))
- {
- block_set_using (block,
- cp_add_using_obstack (name, 0, next - name,
- block_using (block),
- &objfile->symbol_obstack),
- &objfile->symbol_obstack);
- }
-#endif
}
}
else
/* We only want to read in symbols corresponding to variables or
other similar objects that are global or static. Normally, these
are all children of the DW_TAG_compile_unit die, so are all at
- level 1. But C++ namespaces give ries to DW_TAG_namespace dies
+ level 1. But C++ namespaces give rise to DW_TAG_namespace dies
whose children are global objects. So we keep track of what
level we currently think of as referring to file scope; this
should always equal 1 plus the number of namespaces that we are
const char *scope,
int scope_len,
struct using_direct_node *using);
+
static
struct symbol *lookup_symbol_namespace (const char *prefix,
int prefix_len,
namespaces first-class objects. (Which is certainly a good idea
for other reasons, but it will take a little while.) */
+/* NOTE: carlton/2002-11-19: This is optimistically called
+ lookup_symbol_namespace instead of lookup_symbol_aux_namespace in
+ hopes that it or something like it might eventually be useful
+ outside of lookup_symbol. */
+
static struct symbol *
lookup_symbol_namespace (const char *prefix,
int prefix_len,
+2002-11-19 David Carlton <carlton@math.stanford.edu>
+
+ * gdb.c++/namespace.exp: Delete FIXME comment.
+ Fill in PR's for setup_kfail's.
+ Fiddle with comments at top of file.
+
2002-11-08 Jeff Johnston <jjohnstn@redhat.com>
* lib/mi-support.exp (mi_gdb_start): Verify the startup message
# bug-gdb@prep.ai.mit.edu
# tests for namespaces
-# Written by Satish Pai <pai@apollo.hp.com> 1997-07-23
+# Originally written by Satish Pai <pai@apollo.hp.com> 1997-07-23
# This file is part of the gdb testsuite
-# Note: These tests are geared to the HP aCC compiler,
+# Note: The original tests were geared to the HP aCC compiler,
# which has an idiosyncratic way of emitting debug info
# for namespaces.
-# Note: As of 2000-06-03, these pass under g++ - djb
+# Note: As of 2000-06-03, they passed under g++ - djb
if $tracelevel then {
gdb_test "print cd" "\\$\[0-9\].* = 3" "print cd"
gdb_test "print 'C::D::cd'" "\\$\[0-9\].* = 3" "print C::D::cd"
gdb_test "print 'E::cde'" "\\$\[0-9\].* = 5" "print E::cde"
-
-# FIXME: carlton/2002-10-17: It's somewhat accidental that we
-# currently get this one right. (Delete this comment once namespace
-# scope issues have been handled correctly!)
-
gdb_test "print shadow" "\\$\[0-9\].* = 13" "print shadow"
-
# NOTE: carlton/2002-10-17: This one won't get fixed until namespaces
-# are first-class objects.
+# are first-class objects. The PR isn't right, either.
-setup_kfail "FIXME"
+setup_kfail "gdb/827"
gdb_test "print 'E::ce'" "No symbol \"E::ce\" in current context." "print E::ce"
# Some anonymous namespace tests.
# Test namespace renaming.
-setup_kfail "FIXME"
+setup_kfail "gdb/830"
gdb_test "print 'I::h'" "\\$\[0-9\].* = 14" "print I::h"
# Test using directives.
# have unfortunate interactions with namespace scope issues. As of
# this writing, some of these pass, but they pass for the wrong reasons.
-setup_kfail "FIXME"
+setup_kfail "gdb/829"
gdb_test "print j" "\\$\[0-9\].* = 15" "print j"
-setup_kfail "FIXME"
+setup_kfail "gdb/829"
gdb_test "print 'L::k'" "\\$\[0-9\].* = 16" "print L::k"
-setup_kfail "FIXME"
+setup_kfail "gdb/829"
gdb_test "print k" "No symbol \"k\" in current context." "print k"
-setup_kfail "FIXME"
+setup_kfail "gdb/829"
gdb_test "print cdm" "\\$\[0-9\].* = 17" "print cdm"
-setup_kfail "FIXME"
+setup_kfail "gdb/829"
gdb_test "print 'Q::o'" "\\$\[0-9\].* = 18" "print Q::o"
-setup_kfail "FIXME"
+setup_kfail "gdb/829"
gdb_test "print o" "No symbol \"o\" in current context." "print o"
# Test using declarations. I should probably test these more.
-setup_kfail "FIXME"
+setup_kfail "gdb/831"
gdb_test "print r1" "\\$\[0-9\].* = 19" "print r1"
-setup_kfail "FIXME"
+setup_kfail "gdb/831"
gdb_test "print r2" "No symbol \"r2\" in current context." "print r2"