Don't edit bogus sh_link on reading relocatable objects (Oracle fix)
[binutils-gdb.git] / gdb / cp-support.h
index 6ca898315bb1a8d4f9632e73680eab260167c622..841ee4f53314db0f91b12369dd0fb60a58b51884 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper routines for C++ support in GDB.
-   Copyright (C) 2002-2020 Free Software Foundation, Inc.
+   Copyright (C) 2002-2021 Free Software Foundation, Inc.
 
    Contributed by MontaVista Software.
    Namespace support contributed by David Carlton.
@@ -127,8 +127,7 @@ extern struct type *cp_lookup_rtti_type (const char *name,
    "function" or "bar::function" in all namespaces is possible.  */
 extern unsigned int cp_search_name_hash (const char *search_name);
 
-/* Implement the "la_get_symbol_name_matcher" language_defn method for
-   C++.  */
+/* Implement the "get_symbol_name_matcher" language_defn method for C++.  */
 extern symbol_name_matcher_ftype *cp_get_symbol_name_matcher
   (const lookup_name_info &lookup_name);
 
@@ -189,10 +188,6 @@ extern struct cmd_list_element *maint_cplus_cmd_list;
 
 /* A wrapper for bfd_demangle.  */
 
-char *gdb_demangle (const char *name, int options);
-
-/* Like gdb_demangle, but suitable for use as la_sniff_from_mangled_name.  */
-
-int gdb_sniff_from_mangled_name (const char *mangled, char **demangled);
+gdb::unique_xmalloc_ptr<char> gdb_demangle (const char *name, int options);
 
 #endif /* CP_SUPPORT_H */