X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcp-support.h;h=7c948b212cbaeeb5453f2b64a5ee7b3cb6ca41c5;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=c2e63ea0de3f3b1d8973113df3d1a4a6afa33144;hpb=582942f4560f1c8d2a60c2557267f9d3ad8dd6aa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/cp-support.h b/gdb/cp-support.h index c2e63ea0de..7c948b212c 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-2019 Free Software Foundation, Inc. + Copyright (C) 2002-2020 Free Software Foundation, Inc. Contributed by MontaVista Software. Namespace support contributed by David Carlton. @@ -25,10 +25,9 @@ /* We need this for 'domain_enum', alas... */ #include "symtab.h" -#include "common/vec.h" -#include "common/gdb_vecs.h" +#include "gdbsupport/gdb_vecs.h" #include "gdb_obstack.h" -#include "common/array-view.h" +#include "gdbsupport/array-view.h" #include /* Opaque declarations. */ @@ -78,15 +77,16 @@ struct demangle_parse_info /* Functions from cp-support.c. */ -extern std::string cp_canonicalize_string (const char *string); +extern gdb::unique_xmalloc_ptr cp_canonicalize_string + (const char *string); -extern std::string cp_canonicalize_string_no_typedefs (const char *string); +extern gdb::unique_xmalloc_ptr cp_canonicalize_string_no_typedefs + (const char *string); typedef const char *(canonicalization_ftype) (struct type *, void *); -extern std::string cp_canonicalize_string_full (const char *string, - canonicalization_ftype *finder, - void *data); +extern gdb::unique_xmalloc_ptr cp_canonicalize_string_full + (const char *string, canonicalization_ftype *finder, void *data); extern char *cp_class_name_from_physname (const char *physname); @@ -191,8 +191,4 @@ extern struct cmd_list_element *maint_cplus_cmd_list; 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); - #endif /* CP_SUPPORT_H */