aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-02-26 17:31:29 -0800
committerDoug Evans <dje@google.com>2015-02-26 17:31:29 -0800
commit0def5aaad6a89e78f09cef2b95635dc3254ce304 (patch)
tree22dd04767ffb22e3eac010b00c86c03c682bdb6d /gdb/gnu-v3-abi.c
parent330b17b30f85b091a214c2987de5dfef1e9733ac (diff)
downloadgdb-0def5aaad6a89e78f09cef2b95635dc3254ce304.zip
gdb-0def5aaad6a89e78f09cef2b95635dc3254ce304.tar.gz
gdb-0def5aaad6a89e78f09cef2b95635dc3254ce304.tar.bz2
Add missing CHECK_TYPEDEF calls to recent vptr_{fieldno,basetype} cleanup.
gdb/ChangeLog: * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to CHECK_TYPEDEF. (set_type_vptr_fieldno): Ditto. (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto. * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto. gdb/testsuite/ChangeLog: * gdb.cp/class2.cc (Dbase, D): New classes. (main): New local delta. * gdb.cp/class2.exp: Test printing delta. * gdb.cp/classes.cc (DynamicBase2, DynamicBar): New classes. (dynbar): New global. * gdb.cp/classes.exp (test_ptype_class_objects): Test ptype DynamicBar.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index cdcb354..1dfb37b 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -202,6 +202,7 @@ gnuv3_dynamic_class (struct type *type)
{
int fieldnum, fieldelem;
+ CHECK_TYPEDEF (type);
gdb_assert (TYPE_CODE (type) == TYPE_CODE_STRUCT
|| TYPE_CODE (type) == TYPE_CODE_UNION);