Skip to content

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

@max-charlamb max-charlamb merged commit 7d4c075 into dotnet:main Aug 28, 2025
50 checks passed
@max-charlamb max-charlamb deleted the cdac-get-il-address-map branch August 28, 2025 21:51
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.

2 participants