Re: [RFC] dwarf debug information: Handle Free Pascal virtual table indexes

Tom Tromey
2010-05-12T19:49:22Z

>>>>> "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