Be more strict about what kinds of types can be passed.
authorDoug Evans <xdje42@gmail.com>
Sun, 1 Feb 2015 05:14:17 +0000 (21:14 -0800)
committerDoug Evans <xdje42@gmail.com>
Sun, 1 Feb 2015 05:14:17 +0000 (21:14 -0800)
commit5f4ce105edc3ebbd4b0425d41ccac0064e3cec41
tree532a355ec8d51ef970e725bd16bce3d28c704aef
parentf6b3afbf2fce69c31bd738e0543c55fbd848e74a
Be more strict about what kinds of types can be passed.

gdb/ChangeLog:

* gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
or unions.  Return zero if union.
(gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
(gnuv3_rtti_type): Pass already-check_typedef'd value to
gnuv3_get_vtable.
(compute_vtable_size): Assert only passed structs.
(gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
gdb/ChangeLog
gdb/gnu-v3-abi.c