Index: gdb/cp-support.h |
diff --git a/gdb/cp-support.h b/gdb/cp-support.h |
index 0d2b5131b549eae2e006096d198b4fdd0a495568..4358b23d592100eba37ce6b8ed7842670cd6d7fc 100644 |
--- a/gdb/cp-support.h |
+++ b/gdb/cp-support.h |
@@ -1,5 +1,5 @@ |
/* Helper routines for C++ support in GDB. |
- Copyright (C) 2002-2005, 2007-2012 Free Software Foundation, Inc. |
+ Copyright (C) 2002-2013 Free Software Foundation, Inc. |
Contributed by MontaVista Software. |
Namespace support contributed by David Carlton. |
@@ -125,11 +125,11 @@ struct demangle_parse_info |
struct using_direct |
{ |
- char *import_src; |
- char *import_dest; |
+ const char *import_src; |
+ const char *import_dest; |
- char *alias; |
- char *declaration; |
+ const char *alias; |
+ const char *declaration; |
struct using_direct *next; |
@@ -149,6 +149,12 @@ extern char *cp_canonicalize_string (const char *string); |
extern char *cp_canonicalize_string_no_typedefs (const char *string); |
+typedef const char *(canonicalization_ftype) (struct type *, void *); |
+ |
+extern char *cp_canonicalize_string_full (const char *string, |
+ canonicalization_ftype *finder, |
+ void *data); |
+ |
extern char *cp_class_name_from_physname (const char *physname); |
extern char *method_name_from_physname (const char *physname); |
@@ -180,14 +186,9 @@ extern void cp_add_using_directive (const char *dest, |
const char *alias, |
const char *declaration, |
VEC (const_char_ptr) *excludes, |
+ int copy_names, |
struct obstack *obstack); |
-extern 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); |
- |
extern void cp_scan_for_anonymous_namespaces (const struct symbol *symbol, |
struct objfile *objfile); |
@@ -219,6 +220,11 @@ extern struct symbol *cp_lookup_nested_symbol (struct type *parent_type, |
struct type *cp_lookup_transparent_type (const char *name); |
+/* See description in cp-namespace.c. */ |
+ |
+struct type *find_type_baseclass_by_name (struct type *parent_type, |
+ const char *name); |
+ |
/* Functions from cp-name-parser.y. */ |
extern struct demangle_parse_info *cp_demangled_name_to_comp |
@@ -240,4 +246,8 @@ extern struct demangle_parse_info *cp_new_demangle_parse_info (void); |
extern struct cmd_list_element *maint_cplus_cmd_list; |
+/* A wrapper for bfd_demangle. */ |
+ |
+char *gdb_demangle (const char *name, int options); |
+ |
#endif /* CP_SUPPORT_H */ |