mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 21:03:55 +08:00
* demangle.h (no_demangling): New.
(NO_DEMANGLING_STYLE_STRING): New. * cplus-dem.c (libiberty_demanglers): Add no_demangling case. (cplus_demangle): Support no_demangling.
This commit is contained in:
@ -258,6 +258,12 @@ typedef enum type_kind_t
|
||||
|
||||
const struct demangler_engine libiberty_demanglers[] =
|
||||
{
|
||||
{
|
||||
NO_DEMANGLING_STYLE_STRING,
|
||||
no_demangling,
|
||||
"Demangling disabled"
|
||||
}
|
||||
,
|
||||
{
|
||||
AUTO_DEMANGLING_STYLE_STRING,
|
||||
auto_demangling,
|
||||
@ -909,6 +915,10 @@ cplus_demangle (mangled, options)
|
||||
{
|
||||
char *ret;
|
||||
struct work_stuff work[1];
|
||||
|
||||
if (current_demangling_style == no_demangling)
|
||||
return xstrdup (mangled);
|
||||
|
||||
memset ((char *) work, 0, sizeof (work));
|
||||
work->options = options;
|
||||
if ((work->options & DMGL_STYLE_MASK) == 0)
|
||||
|
Reference in New Issue
Block a user