Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
authorTom Tromey <tromey@redhat.com>
Thu, 27 Sep 2012 16:04:23 +0000 (16:04 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 27 Sep 2012 16:04:23 +0000 (16:04 +0000)
commit7977e5d2a6287c48bbfe41fdc5fc795b58e98dfe
treea3010f595c4802223eaaf34634ba36b76a153e77
parent807160da3c24f9a8adfb0c2b04352ab56ebc1d61
Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
* cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
gdb/testsuite
* gdb.cp/derivation.exp: Add regression test.
* gdb.cp/derivation.cc (class V_base, class V_inter, class
V_derived): New.
(vderived): New global.
gdb/ChangeLog
gdb/cp-valprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/derivation.cc
gdb/testsuite/gdb.cp/derivation.exp