Skip to content

[cDAC] implement IXCLRDataMethodInstance::GetILAddressMap #119019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

max-charlamb
Copy link
Contributor

No description provided.

@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 18:43
Copy link
Contributor

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

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements the IXCLRDataMethodInstance::GetILAddressMap method in the cDAC (Contract-based Debug Access Component) system. The implementation replaces a stub that previously delegated to the legacy implementation with a full native implementation that retrieves IL-to-native address mapping information for debugging purposes.

Key Changes:

  • Defines new data structures (ClrDataSourceType enum and ClrDataILAddressMap struct) for IL address mapping
  • Implements the GetILAddressMap method to provide IL offset to native address mappings using the target contracts
  • Adds comprehensive debug validation to compare cDAC results with legacy DAC implementation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
IXCLRData.cs Defines new IL address mapping data structures and updates method signature with proper marshaling attributes
ClrDataMethodInstance.cs Implements GetILAddressMap method with native code retrieval, offset mapping, and debug validation

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

Successfully merging this pull request may close these issues.

1 participant