From: "Kris Warkentin" <kewarken@qnx.com>
To: <gdb@sources.redhat.com>
Subject: gnu-v3-abi.c: problems w/ virtual base class
Date: Wed, 30 Oct 2002 09:10:00 -0000 [thread overview]
Message-ID: <120101c28037$3ddb3d10$d8020c0a@catdog> (raw)
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> = {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
next reply other threads:[~2002-10-30 17:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-30 9:10 Kris Warkentin [this message]
2002-10-30 9:20 ` Daniel Jacobowitz
2002-10-30 9:30 ` Kris Warkentin
2002-10-30 9:34 ` Daniel Jacobowitz
2002-10-30 9:46 ` Kris Warkentin
2002-10-30 10:48 ` Kris Warkentin
2002-10-30 11:00 ` Kris Warkentin
2002-10-30 11:07 ` Daniel Jacobowitz
2002-10-30 11:00 ` Daniel Jacobowitz
2002-10-30 11:19 ` Kris Warkentin
2002-10-30 11:26 ` Daniel Jacobowitz
2002-10-30 11:59 ` Kris Warkentin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='120101c28037$3ddb3d10$d8020c0a@catdog' \
--to=kewarken@qnx.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox