aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-01-22 22:50:39 +0000
committerPedro Alves <palves@redhat.com>2009-01-22 22:50:39 +0000
commit392452f69e23ab77905cd09a7193941975dd1a0a (patch)
tree344f66e5492760e848141b9c2efedc11ada125ac /gdb/gnu-v3-abi.c
parent8653e71c5e19cf30457b3a5a9541630ede706aa4 (diff)
downloadgdb-392452f69e23ab77905cd09a7193941975dd1a0a.zip
gdb-392452f69e23ab77905cd09a7193941975dd1a0a.tar.gz
gdb-392452f69e23ab77905cd09a7193941975dd1a0a.tar.bz2
2009-01-22 Pedro Alves <pedro@codesourcery.com>
PR c++/9631: * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on vbasetype. 2009-01-22 Pedro Alves <pedro@codesourcery.com> PR c++/9631: * gdb.cp/pr9631.cc, gdb.cp/pr9631.exp: New.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 8f2a53b..ea0a7a4 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -460,7 +460,7 @@ gnuv3_baseclass_offset (struct type *type, int index, const bfd_byte *valaddr,
start of whichever baseclass it resides in, as a sanity measure - iff
we have debugging information for that baseclass. */
- vbasetype = TYPE_VPTR_BASETYPE (type);
+ vbasetype = check_typedef (TYPE_VPTR_BASETYPE (type));
vbasetype_vptr_fieldno = get_vptr_fieldno (vbasetype, NULL);
if (vbasetype_vptr_fieldno >= 0