Uh oh!
There was an error while loading. Please reload this page.
Adding TraverseModuleMap cDAC API - #118650
Conversation
Tagging subscribers to this area: @steveisok, @dotnet/dotnet-diag |
There was a problem hiding this comment.
Pull Request Overview
This PR implements the TraverseModuleMap API for the contract-based Data Access Component (cDAC) system. The implementation allows traversal of module lookup maps for debugging purposes, specifically supporting iteration over TypeDef-to-MethodTable and TypeRef-to-MethodTable mappings within modules.
Key changes:
- Replaces the stub implementation of
TraverseModuleMapwith a full cDAC-based implementation - Adds a new
IterateModuleLookupMapmethod to the Loader contract for iterating over module lookup maps - Introduces a
ModuleMapTypeenum to distinguish between different map types
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
SOSDacImpl.cs | Implements the main TraverseModuleMap method with cDAC contracts and legacy comparison logic |
ISOSDacInterface.cs | Adds ModuleMapType enum defining supported map types |
Loader_1.cs | Implements the core IterateModuleLookupMap method for traversing lookup maps |
ILoader.cs | Adds the IterateModuleLookupMap method signature to the contract interface |
Loader.md | Updates documentation with the new API method and implementation details |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
noahfalk
left a comment
There was a problem hiding this comment.
Looked good to me (it looked like the refactoring and test suggestions were going in a good direction)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
max-charlamb
left a comment
There was a problem hiding this comment.
looks good if you add a comment showing that the ulong represents a ClrDataAddress
…nterface.cs Co-authored-by: Max Charlamb <44248479+max-charlamb@users.noreply.github.com>
This will cause dumpmodule -mt to print twice in debug, shouldn't break the tests