aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-07-09 04:40:39 +0000
committerFred Fish <fnf@specifix.com>1992-07-09 04:40:39 +0000
commit8050a57b2c1a8e7a54a81b540e6446d310a08b6b (patch)
tree94a82a32f7273ad3f341c172bf8ed44298ed10de /gdb/values.c
parente17e8e0e03750974d678548fae82ba44f038a1c9 (diff)
downloadgdb-8050a57b2c1a8e7a54a81b540e6446d310a08b6b.zip
gdb-8050a57b2c1a8e7a54a81b540e6446d310a08b6b.tar.gz
gdb-8050a57b2c1a8e7a54a81b540e6446d310a08b6b.tar.bz2
* dwarfread.c (alloc_utype, decode_subscr_data): Call alloc_type
to create new blank types, instead of handcrafting them. * defs.h (printfi_filtered): Add prototype. * utils.c (printfi_filtered): New function. * gdbtypes.c (recursive_dump_type): Use printfi_filtered to to simplify the code. Other cleanups. * gdbtypes.c (check_stub_method): Demangle using DMGL_ANSI. * gdbtypes.h (struct cplus_struct_type): Add comments describing use of various fields. * gdbtypes.c (print_bit_vector, print_cplus_stuff): New functions. * c-exp.y (%token): Add CLASS as a token for C++, add grammar production that currently treats it exactly the same as STRUCT. * c-exp.y (yylex): Recognize "class" as token CLASS. * symtab.c (gdb_mangle_name): Rewrite to match current g++ stabs. * symtab.c (decode_line_1): Fix to pass quoted args on down to general symbol handling code. Call cplus_mangle_opname with DMGL_ANSI. * symtab.c (decode_line_2): Print demangled function names in breakpoint menus, instead of just file and line number. * symtab.c (name_match): Call cplus_demangle with DMGL_ANSI. * valprint.c (type_print_base): Print "class" for C++ classes, rather than "struct". Print section labels for public, protected and private members of C++ classes. * values.c: Include demangle.h. * values.c (value_headof): Call cplus_demangle with DMGL_ANSI.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c3
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);