Skip to content

Generalize JIT debug info register representation for the debugger #130979

Open

Description

@tommcdon

Follow-up from #129992 (comment)

This issue tracks the remaining work to generalize JIT debug variable-location representation:

  • Add VLT_SEGMENTS (for example, {reg|stack, valueOffset, size}) to ICorDebugInfo::VarLoc and the JIT's siVarLoc. Update debug-info serialization, cDAC, R2R, NativeAOT object writers, dumps, and readers. The serialized representation should retain compact encodings for common cases. This will likely require another debug-info/R2R format bump.

  • Generalize TwoRegisterValueHome into an N-segment value home and update DBI/VM decoding to reconstruct values from arbitrary register and stack segments.

  • Emit segments for return values using ReturnTypeDesc/ABI passing information. Remove the two-register and fixed-eight-byte-piece limitations, enabling three- or four-register HFAs/HVAs and other split returns.

  • Emit segments for enregistered and register/stack-split locals and arguments, improving optimized-code local inspection.

  • Migrate remaining legacy VLT_REG*/VLT_STK* cases to the segment representation, remove obsolete platform workarounds—including VLT_REG_FP—and complete ARM32 support.

Activity

  1. added this to the 12.0.0 milestone on Jul 17, 2026
  2. dotnet-policy-service commented on Jul 17, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
    See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions