Skip to content

Conversation

max-charlamb
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 15:06
@max-charlamb max-charlamb requested review from rcj1 and removed request for Copilot August 22, 2025 15:07
@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 15:13
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 GetAssemblyData method for the cDAC (Contract-based Debugging API for .NET Core) interface, replacing a stub implementation that previously delegated to the legacy DAC. The implementation provides assembly metadata including whether an assembly is dynamic, its module count, and parent domain information.

Key changes:

  • Replace stub implementation with full cDAC-based GetAssemblyData method
  • Add support for detecting dynamic assemblies through new IsDynamic contract method
  • Include comprehensive debug validation against legacy DAC implementation

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
SOSDacImpl.cs Implements GetAssemblyData method with assembly metadata retrieval and debug validation
ISOSDacInterface.cs Defines DacpAssemblyData structure and updates method signature
Assembly.cs Adds IsDynamic property to Assembly data contract
Loader_1.cs Implements IsDynamic method in Loader contract
ILoader.cs Adds IsDynamic method to ILoader interface
datadescriptor.inc Adds IsDynamic field to Assembly type descriptor
assembly.hpp Adds offset definition for IsDynamic field
Loader.md Updates documentation with IsDynamic field and corrects typo

Copy link
Contributor

@rcj1 rcj1 left a comment

Choose a reason for hiding this comment

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

Test break with assembly mock descriptors, LGTM otherwise

@max-charlamb max-charlamb merged commit 0e663a6 into dotnet:main Aug 25, 2025
96 of 101 checks passed
@max-charlamb max-charlamb deleted the cdac-getassemblydata branch August 25, 2025 14:02
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants