Open
Description
Updated descrption
Trait objects (~T
and @T
where T
is a trait) are objects that hide their implementation and carry a virtual method dispatch table (i.e. vtable).
So, two things:
- Debuggers will want to be able to bypass the abstraction barrier and see the hidden implementation.
- They are also likely to want to be able to see the vtable.
- I am not sure how flexible the debug format is for gdb, but newer versions of gdb do support printing the vtable for C++ objects (via
info vtbl
or perhapsinfo vtable
). It would be cool if we could massage our debug info so that gdb can just print out our vtables too, the same way.
- I am not sure how flexible the debug format is for gdb, but newer versions of gdb do support printing the vtable for C++ objects (via
Original description
There is none.