microsoft / microsoft/MIEngine

[natvis] gdb needs fully qualified types

Open
#197 5 comments 0 reactions 0 assignees View on GitHub

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 &amp; 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.