This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] dwarf debug information: Handle Free Pascal virtual table indexes
- From: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 12 May 2010 13:49:04 -0600
- Subject: Re: [RFC] dwarf debug information: Handle Free Pascal virtual table indexes
- References: <23651.5388860882$1273672053@news.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> DW_AT_vtable_elem_location attribute a BLOCK consisting of
Pierre> a DW_OP_constu marker followed by a unsigned_leb128 value
Pierre> to indicate the offset within the virtual table of a virtual
Pierre> function.
By my reading, this is incorrect DWARF. Or is there more to the
expression than that?
If it is not possible to fix the compiler, then I would propose making
this conditional on language_pascal.
If there is more to the expression, then maybe decode_locdesc already
handles it and we just need to update the gate in dwarf2_add_member_fn.
Tom