-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)A-dyn-traitArea: trait objects, vtable layoutArea: trait objects, vtable layoutC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.P-lowLow priorityLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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.
ebkalderon, LooMaclin, Aaron1011, lambda-fairy, lukechu10 and 9 more
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)A-dyn-traitArea: trait objects, vtable layoutArea: trait objects, vtable layoutC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.P-lowLow priorityLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.