microsoft / microsoft/MIEngine
[natvis] gdb needs fully qualified types
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 859
- Forks
- 233
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 3
Description
class llvm::Type {
enum TypeID {
...
};
unsigned IDAndSubclassData;
<Type Name="llvm::Type">
<DisplayString>{(TypeID)(IDAndSubclassData & 0xFF)} data: {IDAndSubclassData >> 8}</DisplayString>
[Type] -var-create: unable to create variable object data: 0 llvm::Type
Changing it to <DisplayString>{(llvm::Type::TypeID) makes it work for remote debugging.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the natvis definition for llvm::Type and reproduce the reported remote-debugging failure with gdb. Compare the failing unqualified TypeID expression with the fully qualified llvm::Type::TypeID form shown in the issue, then verify that the corrected display string creates successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100