From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23367 invoked by alias); 30 Oct 2002 17:10:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23185 invoked from network); 30 Oct 2002 17:10:36 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 30 Oct 2002 17:10:36 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id MAA10550 for ; Wed, 30 Oct 2002 12:08:19 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id LAA23819 for ; Wed, 30 Oct 2002 11:59:39 -0500 Message-ID: <120101c28037$3ddb3d10$d8020c0a@catdog> From: "Kris Warkentin" To: Subject: gnu-v3-abi.c: problems w/ virtual base class Date: Wed, 30 Oct 2002 09:10:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-10/txt/msg00203.txt.bz2 Hello, We're porting gdb 5.2.1 to our toolchain and I'm noticing a problem with inherited virtual base classes. Given: class vA { public: int va; int vx; }; class vB : public virtual vA { public: int vb; int vx; }; vB g_vB; we get the failure: Expected output: (gdb) print g_vB $73 = { = {va = 3, vx = 4}, _vb$vA = 0x80422a4, vb = 5, vx = 6} (gdb) Output given: (gdb) print g_vB $67 = {Expected a negative vbase offset (old compiler?) (gdb) Now I looked at the comment for this in gnu-v3-abi.c and I'm guessing the issue has to do with the fact that we're using gcc-2.95.3. I'm thinking that, because this worked with gdb-5.0, it's probably a configuration error in how we build gdb. Can anyone tell me anything about the c++ abi stuff and if there's any way to make it play nicely with an older gcc? cheers, Kris