aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-08-21 18:40:34 +0000
committerDaniel Jacobowitz <drow@false.org>2008-08-21 18:40:34 +0000
commitdf8a16a1ee1a3d464ecffd6ad66a1d2e09d47838 (patch)
tree94c8eeebaaaa93603980657b438764404597d614 /gdb/symtab.h
parent3567439cdefa9f2340bae3fbb068780923934865 (diff)
downloadgdb-df8a16a1ee1a3d464ecffd6ad66a1d2e09d47838.zip
gdb-df8a16a1ee1a3d464ecffd6ad66a1d2e09d47838.tar.gz
gdb-df8a16a1ee1a3d464ecffd6ad66a1d2e09d47838.tar.bz2
* buildsym.c (add_symbol_to_list): Do not call
cp_scan_for_anonymous_namespaces here. (finish_block): Do not call cp_set_block_scope here. * cp-namespace.c (processing_has_namespace_info) (processing_current_prefix): Delete. (cp_initialize_namespace): Do not initialize processing_has_namespace_info. (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do not check processing_has_namespace_info. (cp_set_block_scope): Take prefix and namespace info flag as arguments. Honor namespaces regardless of a demangled name. * cp-support.h (processing_has_namespace_info) (processing_current_prefix): Delete declarations. (cp_set_block_scope): Update prototype. * dwarf2read.c (processing_has_namespace_info) (processing_current_prefix): New static variables. (read_file_scope): Initialize processing_has_namespace_info. (read_func_scope): Call cp_set_block_scope for C++. (new_symbol): Call cp_scan_for_anonymous_namespaces for C++. * symtab.c (symbol_demangled_name): Accept a const argument. * symtab.h (symbol_demangled_name): Update prototype.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 43c4e81..31aed86 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -224,7 +224,7 @@ extern char *symbol_natural_name (const struct general_symbol_info *symbol);
that symbol. If no demangled name exists, return NULL. */
#define SYMBOL_DEMANGLED_NAME(symbol) \
(symbol_demangled_name (&(symbol)->ginfo))
-extern char *symbol_demangled_name (struct general_symbol_info *symbol);
+extern char *symbol_demangled_name (const struct general_symbol_info *symbol);
/* Macro that returns a version of the name of a symbol that is
suitable for output. In C++ this is the "demangled" form of the