aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-05-05 18:16:23 +0000
committerFred Fish <fnf@specifix.com>1992-05-05 18:16:23 +0000
commit8f793aa54168462d7525a44e83e6a56c7f362a5e (patch)
tree1aa179a28019c4b45822843a45e55ddb7c41768c /gdb/values.c
parent939a34334201ecba8870c2f29982f8d47b716d65 (diff)
downloadgdb-8f793aa54168462d7525a44e83e6a56c7f362a5e.zip
gdb-8f793aa54168462d7525a44e83e6a56c7f362a5e.tar.gz
gdb-8f793aa54168462d7525a44e83e6a56c7f362a5e.tar.bz2
* Makefile.in (DEMANGLER): Define and default to cplus-dem.
Allows selection of C++ demangler to be a configuration option until multiple demanglers are supported. * demangle.h: New include file for extended demangler support. * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c, utils.c, valprint.c: Include "demangle.h" and change all calls to cplus_demangle() or fputs_demangled() to use individual demangling options. * valprint.c (type_print_1): Change options to cplus_demangle to print demangled function args. Still broken, but now less so. * cplus-dem.c: Include demangle.h, reorganize and update some comments to reflect reality. * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change second arg from fixed integer to bit based multiple options. * cplus-dem.c (optable): Reformat and replace ansi members with bit based options. * cplus-dem.c (do_type): Fix bug with parsing missing return type.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 08c970b..b2fc150 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -1070,7 +1070,7 @@ value_headof (arg, btype, dtype)
{
pc_for_sym = value_as_pointer (value_field (best_entry, 2));
sym = find_pc_function (pc_for_sym);
- demangled_name = cplus_demangle (SYMBOL_NAME (sym), -1);
+ demangled_name = cplus_demangle (SYMBOL_NAME (sym), 0);
*(strchr (demangled_name, ':')) = '\0';
}
sym = lookup_symbol (demangled_name, 0, VAR_NAMESPACE, 0, 0);