Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jonas Maebe <jonas.maebe@elis.ugent.be>
To: Tom Tromey <tromey@redhat.com>
Cc: FPC Core Developer List <core@freepascal.org>,
	"Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>,
	gdb-patches@sourceware.org
Subject: Re: [Core] [RFC] dwarf debug information: Handle Free Pascal virtual table indexes
Date: Thu, 13 May 2010 21:25:00 -0000	[thread overview]
Message-ID: <AC70CDDE-FA76-4395-AAF8-601EAA4A88E4@elis.ugent.be> (raw)
In-Reply-To: <m3zl03seuj.fsf@fleche.redhat.com>


On 13 May 2010, at 22:53, Tom Tromey wrote:

>>>>>> "Jonas" == Jonas Maebe <jonas.maebe@elis.ugent.be> writes:
> 
> Jonas> I based that on what I saw gcc 4.0 (and 4.2) generate under Mac
> Jonas> OS X for a virtual C++ method:
> 
> Thanks for pointing this out.  It turns out that g++ is also doing the
> wrong thing.  I filed this today after asking Jason about it:
> 
>    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44126
> 
> So I guess we can safely try to reuse the existing C++ branch in the
> DWARF reader for the Pascal case.

I agree. And I assume it is currently not used because we don't generate an AT_containing_type attribute (because that's used by GDB's DWARF parser to initialise fnp->fcontext). That should not be too difficult to add, but I'm not sure what it's doing in the debug info as part of a TAG_subprogram.

As far as I can see, it's only defined by the DWARF3 spec for DW_TAG_ptr_to_member_type entries (which are not supported by GDB, and I'm not entirely sure about what their purpose is). Both GCC and FPC put all method declarations as childs of the containing type's TAG_structure_type, so I think that the context is implicit anyway.


Jonas


  reply	other threads:[~2010-05-13 21:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <23651.5388860882$1273672053@news.gmane.org>
2010-05-12 21:24 ` Tom Tromey
2010-05-13  7:59   ` Pierre Muller
     [not found]   ` <11064.3996195451$1273708856@news.gmane.org>
2010-05-13 17:29     ` Tom Tromey
2010-05-13 18:12       ` [Core] " Jonas Maebe
2010-05-13 21:13         ` Tom Tromey
2010-05-13 21:25           ` Jonas Maebe [this message]
2010-05-14 17:28             ` Tom Tromey

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=AC70CDDE-FA76-4395-AAF8-601EAA4A88E4@elis.ugent.be \
    --to=jonas.maebe@elis.ugent.be \
    --cc=core@freepascal.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pierre.muller@ics-cnrs.unistra.fr \
    --cc=tromey@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