diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-10-03 22:00:46 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-10-03 22:00:46 +0000 |
commit | 5ef737906e22d88134542767e0382c35b30d1a6c (patch) | |
tree | 30e66b7d001065f39d192d566e972e4fe34934dc | |
parent | 7e66d8acd2b8ed427ae11d18d249c42ffc2a16d7 (diff) | |
download | gdb-5ef737906e22d88134542767e0382c35b30d1a6c.zip gdb-5ef737906e22d88134542767e0382c35b30d1a6c.tar.gz gdb-5ef737906e22d88134542767e0382c35b30d1a6c.tar.bz2 |
2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/2384:
* gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
different lifetimes.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index acadbcc..9778d39 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com> + + PR gdb/2384: + * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have + different lifetimes. + 2008-10-03 Joel Brobecker <brobecker@adacore.com> * solib-osf.c: Include "solib.h". diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index f7b0490..6b405f4 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; |