* 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:
parent
ed1801dfff
commit
2da4c07f1c
4 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-12-06 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
|
* demangle.h (no_demangling): New.
|
||||||
|
(NO_DEMANGLING_STYLE_STRING): New.
|
||||||
|
|
||||||
2001-11-14 Alan Modra <amodra@bigpond.net.au>
|
2001-11-14 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* dis-asm.h (print_insn_i386): Declare.
|
* dis-asm.h (print_insn_i386): Declare.
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
|
|
||||||
extern enum demangling_styles
|
extern enum demangling_styles
|
||||||
{
|
{
|
||||||
|
no_demangling = -1,
|
||||||
unknown_demangling = 0,
|
unknown_demangling = 0,
|
||||||
auto_demangling = DMGL_AUTO,
|
auto_demangling = DMGL_AUTO,
|
||||||
gnu_demangling = DMGL_GNU,
|
gnu_demangling = DMGL_GNU,
|
||||||
|
@ -68,6 +69,7 @@ extern enum demangling_styles
|
||||||
|
|
||||||
/* Define string names for the various demangling styles. */
|
/* Define string names for the various demangling styles. */
|
||||||
|
|
||||||
|
#define NO_DEMANGLING_STYLE_STRING "none"
|
||||||
#define AUTO_DEMANGLING_STYLE_STRING "auto"
|
#define AUTO_DEMANGLING_STYLE_STRING "auto"
|
||||||
#define GNU_DEMANGLING_STYLE_STRING "gnu"
|
#define GNU_DEMANGLING_STYLE_STRING "gnu"
|
||||||
#define LUCID_DEMANGLING_STYLE_STRING "lucid"
|
#define LUCID_DEMANGLING_STYLE_STRING "lucid"
|
||||||
|
|
|
@ -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>
|
2001-11-27 Zack Weinberg <zack@codesourcery.com>
|
||||||
|
|
||||||
* _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
|
* _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
|
||||||
|
|
|
@ -258,6 +258,12 @@ typedef enum type_kind_t
|
||||||
|
|
||||||
const struct demangler_engine libiberty_demanglers[] =
|
const struct demangler_engine libiberty_demanglers[] =
|
||||||
{
|
{
|
||||||
|
{
|
||||||
|
NO_DEMANGLING_STYLE_STRING,
|
||||||
|
no_demangling,
|
||||||
|
"Demangling disabled"
|
||||||
|
}
|
||||||
|
,
|
||||||
{
|
{
|
||||||
AUTO_DEMANGLING_STYLE_STRING,
|
AUTO_DEMANGLING_STYLE_STRING,
|
||||||
auto_demangling,
|
auto_demangling,
|
||||||
|
@ -909,6 +915,10 @@ cplus_demangle (mangled, options)
|
||||||
{
|
{
|
||||||
char *ret;
|
char *ret;
|
||||||
struct work_stuff work[1];
|
struct work_stuff work[1];
|
||||||
|
|
||||||
|
if (current_demangling_style == no_demangling)
|
||||||
|
return xstrdup (mangled);
|
||||||
|
|
||||||
memset ((char *) work, 0, sizeof (work));
|
memset ((char *) work, 0, sizeof (work));
|
||||||
work->options = options;
|
work->options = options;
|
||||||
if ((work->options & DMGL_STYLE_MASK) == 0)
|
if ((work->options & DMGL_STYLE_MASK) == 0)
|
||||||
|
|
Loading…
Reference in a new issue