Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: David Carlton <carlton@kealia.com>
Cc: gdb <gdb@sources.redhat.com>, Elena Zannoni <ezannoni@redhat.com>,
	Jim Blandy <jimb@redhat.com>
Subject: Re: DW_AT_containing_type
Date: Thu, 12 Jun 2003 18:07:00 -0000	[thread overview]
Message-ID: <20030612180714.GA19092@nevyn.them.org> (raw)
In-Reply-To: <m3brx3facd.fsf@dhcp-10-42-69-238.kealia.com>

On Thu, Jun 12, 2003 at 10:56:50AM -0700, David Carlton wrote:
> What's with GDB's and GCC's use of DW_AT_containing type?  As far as I
> can tell, it's only supposed to be used within
> DW_TAG_ptr_to_member_type, but GCC generates it and GDB uses it in
> many other contexts.
> 
> I'll try to find time to figure out how we use it later, but I wanted
> to raise the issue in case anybody knows the answer or in case other
> people aren't aware that we seem to be misusing it.

We are misusing it.  See the GCC source for a comment explaining this
GNU extension.  We use it to indicate which base type contains the
vtable pointer for the derived class; there are a number of other ways
to do it, and at one point we should switch to another way.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-06-12 18:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-12 17:56 DW_AT_containing_type David Carlton
2003-06-12 18:07 ` Daniel Jacobowitz [this message]
2003-06-12 18:16   ` DW_AT_containing_type David Carlton

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=20030612180714.GA19092@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=carlton@kealia.com \
    --cc=ezannoni@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@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