diff options
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/values.c b/gdb/values.c index 7ab8254..8c299cc 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -27,6 +27,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "command.h" #include "gdbcmd.h" #include "target.h" +#include "demangle.h" /* Local function prototypes. */ @@ -1067,7 +1068,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), 0); + demangled_name = cplus_demangle (SYMBOL_NAME (sym), DMGL_ANSI); *(strchr (demangled_name, ':')) = '\0'; } sym = lookup_symbol (demangled_name, 0, VAR_NAMESPACE, 0, 0); |