diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-06 21:56:15 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-06 21:56:15 +0000 |
commit | 8d87ccecbad9d97dc61d88a021f34223f701f24c (patch) | |
tree | 85b5f425f952e6c37f5ace0b07cf26d465445ee5 /libiberty | |
parent | 6bc3b53ccc825c3d2c632319b36c6e3b12b3365c (diff) | |
download | gcc-8d87ccecbad9d97dc61d88a021f34223f701f24c.tar.gz |
* demangle.h (no_demangling): New.
(NO_DEMANGLING_STYLE_STRING): New.
* cplus-dem.c (libiberty_demanglers): Add no_demangling case.
(cplus_demangle): Support no_demangling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/cplus-dem.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index cad39224ca9..3ba5c38b0ac 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2001-12-06 Richard Henderson <rth@redhat.com> + + * cplus-dem.c (libiberty_demanglers): Add no_demangling case. + (cplus_demangle): Support no_demangling. + 2001-11-27 Zack Weinberg <zack@codesourcery.com> * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index e19340c5ada..a35ff14624e 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -259,6 +259,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, "Automatic selection based on executable" @@ -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) |