summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2002-05-11 13:09:37 +0000
committerfgsch <fgsch@openbsd.org>2002-05-11 13:09:37 +0000
commit7db05a28b2ed81b36a932c758cf232a3eb97f66e (patch)
treee12c758f116c6509a74b3e6c9af85f83ad910948
parentpull a few demangler functions needed by new binutils. enable getpwd as (diff)
downloadwireguard-openbsd-7db05a28b2ed81b36a932c758cf232a3eb97f66e.tar.xz
wireguard-openbsd-7db05a28b2ed81b36a932c758cf232a3eb97f66e.zip
funcs and declarations needed by recent changes to cplus-dem.c; espie@ ok
-rw-r--r--gnu/egcs/include/demangle.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/egcs/include/demangle.h b/gnu/egcs/include/demangle.h
index 63fe5e2adf4..a6234119aff 100644
--- a/gnu/egcs/include/demangle.h
+++ b/gnu/egcs/include/demangle.h
@@ -78,6 +78,16 @@ extern enum demangling_styles
#define HP_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_HP)
#define EDG_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_EDG)
+/* Provide information about the available demangle styles. This code is
+ pulled from gdb into libiberty because it is useful to binutils also. */
+
+extern struct demangler_engine
+{
+ const char *demangling_style_name;
+ enum demangling_styles demangling_style;
+ const char *demangling_style_doc;
+} libiberty_demanglers[];
+
extern char *
cplus_demangle PARAMS ((const char *mangled, int options));
@@ -92,4 +102,10 @@ cplus_mangle_opname PARAMS ((const char *opname, int options));
extern void
set_cplus_marker_for_demangling PARAMS ((int ch));
+extern enum demangling_styles
+cplus_demangle_set_style PARAMS ((enum demangling_styles style));
+
+extern enum demangling_styles
+cplus_demangle_name_to_style PARAMS ((const char *name));
+
#endif /* DEMANGLE_H */