From: Daniel Jacobowitz <drow@false.org>
To: David Plumb <David.Plumb@intellon.com>
Cc: gdb@sourceware.org
Subject: Re: incorrect address of class member
Date: Wed, 12 Aug 2009 13:47:00 -0000 [thread overview]
Message-ID: <20090812134722.GA4399@caradoc.them.org> (raw)
In-Reply-To: <5630E8542965844685CBA4EB1C4785048EA900@cdnpostal.Intellon.com>
On Wed, Aug 12, 2009 at 09:35:38AM -0400, David Plumb wrote:
> The following code illustrates the problem. The expected output of this
> little program is the string "Flag value is 1" being printed in the
> terminal. It works but when I debug it with gdb, I see unexpected
> things. It appears as if gdb is getting confused about how the memory is
> being allocated for the Blah class object. The address of the mFlag
> member is reported by gdb to be 0xd7ffb00c when it should be 0xf7ffb00c.
> If gdb is using the wrong address for the mFlag member, it explains why
> the gdb print command is returning the wrong value for the mFlag member.
Could you try a CVS snapshot of GDB? If this still happens, file a
bug.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2009-08-12 13:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 13:35 David Plumb
2009-08-12 13:47 ` Daniel Jacobowitz [this message]
2009-08-12 14:23 ` Tom Tromey
2009-08-12 19:19 ` Tom Tromey
2009-08-12 19:26 ` David Plumb
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=20090812134722.GA4399@caradoc.them.org \
--to=drow@false.org \
--cc=David.Plumb@intellon.com \
--cc=gdb@sourceware.org \
/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