summaryrefslogtreecommitdiff
path: root/gdb/c-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-02-02 16:45:15 +0000
committerTom Tromey <tromey@redhat.com>2010-02-02 16:45:15 +0000
commit89bdb2450e85875b16ad73f00b5632f27e3054a1 (patch)
treea0d4a3f0db2eccbecc209b1566ff48042e37ac0d /gdb/c-lang.h
parenteac509950388e2e6a4d078202a0dd58d59fcddbd (diff)
downloadgdb-89bdb2450e85875b16ad73f00b5632f27e3054a1.tar.gz
gdb
PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: * valops.c (search_struct_field): Compute nbases after calling CHECK_TYPEDEF. (check_field): Call CHECK_TYPEDEF. * cp-valprint.c (cp_print_value): Pass correct address to baseclass_offset. Fix check for virtual base past the end of the object. Don't offset address passed to cp_print_value_fields or apply_val_pretty_printer. (cp_print_value_fields): Fix call to val_print. (cp_print_value_fields_rtti): New function. * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. * p-valprint.c (pascal_object_print_value_fields): Fix call to val_print. * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded offset to address. * language.h (struct language_defn) <la_val_print>: Document. * c-lang.h (cp_print_value_fields_rtti): Declare. gdb/testsuite PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: * gdb.cp/virtbase.cc: New file. * gdb.cp/virtbase.exp: New file. * gdb.cp/userdef.exp: Allow 'struct' or 'class'.
Diffstat (limited to 'gdb/c-lang.h')
-rw-r--r--gdb/c-lang.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/c-lang.h b/gdb/c-lang.h
index d567e81d76c..423cee05899 100644
--- a/gdb/c-lang.h
+++ b/gdb/c-lang.h
@@ -102,6 +102,12 @@ extern void cp_print_value_fields (struct type *, struct type *,
const struct value_print_options *,
struct type **, int);
+extern void cp_print_value_fields_rtti (struct type *,
+ const gdb_byte *, int, CORE_ADDR,
+ struct ui_file *, int,
+ const struct value_print_options *,
+ struct type **, int);
+
extern int cp_is_vtbl_ptr_type (struct type *);
extern int cp_is_vtbl_member (struct type *);