summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2008-10-03 22:00:46 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2008-10-03 22:00:46 +0000
commit5ef737906e22d88134542767e0382c35b30d1a6c (patch)
tree30e66b7d001065f39d192d566e972e4fe34934dc /gdb/gdbtypes.c
parent7e66d8acd2b8ed427ae11d18d249c42ffc2a16d7 (diff)
downloadbinutils-gdb-5ef737906e22d88134542767e0382c35b30d1a6c.tar.gz
2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/2384: * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have different lifetimes.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index f7b04908211..6b405f4bc92 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -1324,7 +1324,7 @@ get_vptr_fieldno (struct type *type, struct type **basetypep)
{
/* If the type comes from a different objfile we can't cache
it, it may have a different lifetime. PR 2384 */
- if (TYPE_OBJFILE (type) == TYPE_OBJFILE (baseclass))
+ if (TYPE_OBJFILE (type) == TYPE_OBJFILE (basetype))
{
TYPE_VPTR_FIELDNO (type) = fieldno;
TYPE_VPTR_BASETYPE (type) = basetype;