Re: [Dwarf-discuss] Representing vtables in DWARF for downcasting

2025-04-24 Thread Cary Coutant via Dwarf-discuss
> > Actually, for GCC and LLVM, the location is an *index* into vtable, *not* > an offset. We have a compiler abstraction that knows how to convert the > DWARF DW_AT_vtable_elem_location to our internal representation of a > location, because various compilers generate the DWARF differently and the

Re: [Dwarf-discuss] Representing vtables in DWARF for downcasting

2025-04-24 Thread John DelSignore via Dwarf-discuss
On 4/23/25 22:46, Cary Coutant via Dwarf-discuss wrote: Looking at the DWARF generated by GCC (and I'm guessing LLVM does the same), I see vtable_elem_location attributes that look like this: <1b8> DW_AT_vtable_elem_location: 2 byte block: 10 0 (DW_OP_constu: 0) This is not correct DWARF!