diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-25 17:55:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-25 17:55:24 +0000 |
commit | 195a3f6cae52fa948b8bb7d2525de6fdf95ad6c0 (patch) | |
tree | 3c6ad1dfea761f190c07f25ad32734e1485344e6 /gdb/cp-namespace.c | |
parent | 8ba0730a172c05805cb5072121ab71ee03654caa (diff) | |
download | gdb-195a3f6cae52fa948b8bb7d2525de6fdf95ad6c0.zip gdb-195a3f6cae52fa948b8bb7d2525de6fdf95ad6c0.tar.gz gdb-195a3f6cae52fa948b8bb7d2525de6fdf95ad6c0.tar.bz2 |
* cp-namespace.c (cp_set_block_scope): Remove.
* cp-support.h (cp_set_block_scope): Remove.
* dbxread.c: Include block.h.
(cp_set_block_scope): New function.
(process_one_symbol): Update.
* dwarf2read.c (read_func_scope): Use block_set_scope.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 32f6d34..c137eec 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -205,43 +205,6 @@ cp_add_using_directive (const char *dest, using_directives = new; } -/* Record the namespace that the function defined by SYMBOL was - defined in, if necessary. BLOCK is the associated block; use - OBSTACK for allocation. */ - -void -cp_set_block_scope (const struct symbol *symbol, - struct block *block, - struct obstack *obstack, - const char *processing_current_prefix, - int processing_has_namespace_info) -{ - if (processing_has_namespace_info) - { - block_set_scope - (block, obstack_copy0 (obstack, processing_current_prefix, - strlen (processing_current_prefix)), - obstack); - } - else if (SYMBOL_DEMANGLED_NAME (symbol) != NULL) - { - /* Try to figure out the appropriate namespace from the - demangled name. */ - - /* FIXME: carlton/2003-04-15: If the function in question is - a method of a class, the name will actually include the - name of the class as well. This should be harmless, but - is a little unfortunate. */ - - const char *name = SYMBOL_DEMANGLED_NAME (symbol); - unsigned int prefix_len = cp_entire_prefix_len (name); - - block_set_scope (block, - obstack_copy0 (obstack, name, prefix_len), - obstack); - } -} - /* Test whether or not NAMESPACE looks like it mentions an anonymous namespace; return nonzero if so. */ |