From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: Re: patch for PR gdb/574
Date: Thu, 15 Aug 2002 20:26:00 -0000 [thread overview]
Message-ID: <20020816032649.GA30528@nevyn.them.org> (raw)
In-Reply-To: <15676.21042.125481.349851@jackfruit.Stanford.EDU>
On Mon, Jul 22, 2002 at 11:42:58AM -0700, david carlton wrote:
> For various reasons, I decided to delve into GDB recently, so I picked
> bug 574 somewhat at random and decided to try to fix it. Here's a
> patch.
>
> The problem: GDB tries to access an improper memory location while
> trying to find run time type info on certain code compiled with G++
> 2.something. In the situation in question, GDB is trying to find the
> vptr of an object that is a subclass of a class with virtual functions
> and static member data. It looks for the information about the vptr
> at a place where information about the static member data is actually
> stored. This is a data structure with a useless (and very large)
> bitpos field; adding this bitpos to a pointer causes that pointer to
> point to the middle of nowhere. Oops.
>
> The solution: Get rid of the check for
>
> if (VALUE_ENCLOSING_TYPE(v) != VALUE_TYPE(v))
>
> and the surrounding code in gnu-v2-abi.c(gnuv2_value_rtti_type).
> 2002-07-22 david carlton <carlton@math.stanford.edu>
>
> * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
> enclosed. Fix PR gdb/574.
This patch is approved. When your FSF papers have been processed, I
would like to see you get write-after-approval access and commit it
yourself; Andrew, does this count as "one good patch"?
Also, I'd appreciate it if you would submit a testsuite patch to run the
reduced testcase you wrote. More tests are always good.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-08-16 3:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-22 12:02 david carlton
2002-07-22 12:16 ` Daniel Jacobowitz
2002-07-22 12:18 ` david carlton
2002-07-23 16:47 ` Jim Blandy
2002-08-15 20:26 ` Daniel Jacobowitz [this message]
2002-08-15 20:48 ` David Carlton
2002-08-16 16:10 ` [rfa/c++testsuite] (was Re: patch for PR gdb/574) David Carlton
2002-08-22 10:10 ` David Carlton
2002-09-27 16:20 ` Andrew Cagney
2002-09-27 16:32 ` David Carlton
2002-09-27 16:42 ` Andrew Cagney
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=20020816032649.GA30528@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb-patches@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