Skip to content

Migrate vararg P/Invoke test to SOS harness - #6155

Merged
max-charlamb merged 1 commit into
mainfrom
dev/max-charlamb/migrate-vararg-pinvoke
Oct 26, 2026
Merged

max-charlamb merged 1 commit into
mainfrom
dev/max-charlamb/migrate-vararg-pinvoke

Conversation

@max-charlamb

Copy link
Copy Markdown
Member

Summary

  • Migrate VarargPInvokeInteropMD.script to a Windows/CDB live test in SOS.Tests, retaining the existing debuggee, Core/SingleFile coverage, and the Windows x86 exclusion tracked by Re-enable SOS tests on Windows x86 when dotnet/runtime#129456 is resolved #5883.
  • Break at native msvcrt!printf, verify the vararg InlinedCallFrame and exact P/Invoke stub signature, resolve its IP with ip2md, and validate clru and clru -il using the existing structured helpers.
  • Preserve the parsed method name when clru -il reports the benign missing-IL-map warning for a stub; add focused parser coverage.
  • Include the debuggee in the modern build/Helix payload metadata, remove the legacy script and registration, and update the coverage audit.

Validation

  • Targeted SOS.Tests and engine-host builds succeeded.
  • All 10 Windows x64 integration configurations passed across .NET 8/9/10/11, Core and SingleFile, including legacy DAC and cDAC on .NET 11.
  • All four code-command parser tests passed.
  • Confirmed the Windows x86 row retains its issue-linked skip.
  • Legacy test project compiled with BuildProjectReferences=false to avoid re-running runtime installation.

Replace the legacy VarargPInvokeInteropMD script with a live CDB test covering vararg frame identity, IL-stub resolution, and native disassembly with and without IL interleaving. Retain Core/SingleFile coverage and the Windows x86 exclusion.

Preserve the parsed method name when clru reports a missing IL map, and add a focused parser regression test.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 2d5c60f7-9c89-42e6-b9fc-04ef78c8f8d8
@max-charlamb
max-charlamb requested a review from a team as a code owner October 26, 2026 21:19
@max-charlamb
max-charlamb merged commit c748ef3 into main Oct 26, 2026
25 checks passed
@max-charlamb
max-charlamb deleted the dev/max-charlamb/migrate-vararg-pinvoke branch October 26, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants