Skip to content

[cDAC] Implement DacDbi API GetSymbolsBuffer#128256

Open
Copilot wants to merge 5 commits into
mainfrom
copilot/add-get-symbols-buffer
Open

[cDAC] Implement DacDbi API GetSymbolsBuffer#128256
Copilot wants to merge 5 commits into
mainfrom
copilot/add-get-symbols-buffer

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 15, 2026

Implement GetSymbolsBuffer and add unit tests.

Copilot AI requested review from Copilot and removed request for Copilot May 15, 2026 13:39
Copilot finished work on behalf of rcj1 May 15, 2026 13:40
Copilot AI requested a review from rcj1 May 15, 2026 13:40
@rcj1 rcj1 added the NO-REVIEW Experimental/testing PR, do NOT review it label May 15, 2026
Copilot AI requested review from Copilot and removed request for Copilot May 15, 2026 13:57
Copilot AI changed the title Implement cDAC GetSymbolsBuffer and GetInMemorySymbolStream Revert to TryGetSymbolStream and add in-memory-symbols dump test May 15, 2026
Copilot finished work on behalf of rcj1 May 15, 2026 13:58
Copilot AI review requested due to automatic review settings May 15, 2026 14:05
Copy link
Copy Markdown
Contributor

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 and tests managed cDAC/DacDbi support for retrieving in-memory symbol streams from modules, including dump coverage using a MultiModule debuggee that loads an assembly with in-memory PDB bytes.

Changes:

  • Adds mock support for CGrowableSymbolStream and unit tests for ILoader.TryGetSymbolStream.
  • Implements DacDbiImpl.GetSymbolsBuffer using the Loader contract and adds unit coverage.
  • Extends the MultiModule dump debuggee/test coverage to exercise in-memory PDB symbol buffers.
Show a summary per file
File Description
src/native/managed/cdac/tests/MockDescriptors/MockDescriptors.Loader.cs Adds mock growable symbol stream layout and helper allocation.
src/native/managed/cdac/tests/LoaderTests.cs Registers the symbol stream type and tests loader symbol stream behavior.
src/native/managed/cdac/tests/DumpTests/Debuggees/MultiModule/Program.cs Loads the debuggee assembly from bytes with PDB bytes for dump testing.
src/native/managed/cdac/tests/DumpTests/DacDbi/DacDbiMultiModuleDumpTests.cs Adds dump integration coverage for GetSymbolsBuffer.
src/native/managed/cdac/tests/DacDbiImplTests.cs Adds unit tests for DacDbiImpl.GetSymbolsBuffer.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/Dbi/DacDbiImpl.cs Implements managed GetSymbolsBuffer.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 1

@rcj1 rcj1 added area-Diagnostics-cdac and removed NO-REVIEW Experimental/testing PR, do NOT review it area-Diagnostics-coreclr labels May 15, 2026
@rcj1 rcj1 changed the title Revert to TryGetSymbolStream and add in-memory-symbols dump test [cDAC] Implement DacDbi API GetSymbolsBuffer May 15, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

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

@rcj1 rcj1 marked this pull request as ready for review May 15, 2026 19:51
Copilot AI review requested due to automatic review settings May 15, 2026 19:51
@rcj1 rcj1 requested a review from noahfalk May 15, 2026 19:51
@rcj1 rcj1 requested a review from barosiak May 15, 2026 19:51
Copy link
Copy Markdown
Contributor

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.

Copilot's findings

  • Files reviewed: 7/7 changed files
  • Comments generated: 3

Comment thread src/native/managed/cdac/tests/DacDbiImplTests.cs
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.

3 participants