diff options
author | Fred Fish <fnf@specifix.com> | 1992-07-15 19:33:21 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-07-15 19:33:21 +0000 |
commit | d23639b2ecdb98b13403d39be6883433da7176f8 (patch) | |
tree | 0cefd6732af18e29207ee4373eae63056be340c5 /gdb/demangle.c | |
parent | 781fa085cb64d26eed91c008408d823ed7557409 (diff) | |
download | gdb-d23639b2ecdb98b13403d39be6883433da7176f8.zip gdb-d23639b2ecdb98b13403d39be6883433da7176f8.tar.gz gdb-d23639b2ecdb98b13403d39be6883433da7176f8.tar.bz2 |
* dbxread.c, dwarfread.c: Re-enable experimental code to
automatically select demangling style.
* demangle.c (DEFAULT_DEMANGLING_STYLE): Rename from simply
DEMANGLING_STYLE, to make more descriptive. Revert back to
"auto" as default. Comment use.
* Makefile.in (DEMANGLING_STYLE, DEMANGLE_OPTS): Remove.
* Makefile.in (${DEMANGLER}.o) Remove target and special
compilation rule.
Diffstat (limited to 'gdb/demangle.c')
-rw-r--r-- | gdb/demangle.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/demangle.c b/gdb/demangle.c index 667ba19..cc5de19 100644 --- a/gdb/demangle.c +++ b/gdb/demangle.c @@ -28,8 +28,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "demangle.h" #include <string.h> -#ifndef DEMANGLING_STYLE -# define DEMANGLING_STYLE GNU_DEMANGLING_STYLE_STRING +/* Select the default C++ demangling style to use. The default is "auto", + which allows gdb to attempt to pick an appropriate demangling style for + the executable it has loaded. It can be set to a specific style ("gnu", + "lucid", "cfront", etc.) in which case gdb will never attempt to do auto + selection of the style unless you do an explicit "set demangle auto". + To select one of these as the default, set DEFAULT_DEMANGLING_STYLE in + the appropriate target configuration file. */ + +#ifndef DEFAULT_DEMANGLING_STYLE +# define DEFAULT_DEMANGLING_STYLE AUTO_DEMANGLING_STYLE_STRING #endif /* The current demangling style in affect. Global so that the demangler @@ -181,5 +189,5 @@ _initialize_demangler () show -> function.cfunc = show_demangling_command; /* Set the default demangling style chosen at compilation time. */ - set_demangling_style (DEMANGLING_STYLE); + set_demangling_style (DEFAULT_DEMANGLING_STYLE); } |