From 1f4eeb60e63d6835130971900e06450255331246 Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Tue, 30 Jun 2026 17:29:58 -0400 Subject: [PATCH] Include ARM64 integer context in DAC fallback When the remote data target cannot provide a thread context, DAC falls back to synthesizing a context from explicit frames. Match AMD64 and ARM by advertising integer registers on ARM64 as well, so copied fallback contexts preserve X0 for interpreter stack walking. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/coreclr/debug/daccess/dacdbiimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/debug/daccess/dacdbiimpl.cpp b/src/coreclr/debug/daccess/dacdbiimpl.cpp index 6fc569b45554c2..05654f98ad2124 100644 --- a/src/coreclr/debug/daccess/dacdbiimpl.cpp +++ b/src/coreclr/debug/daccess/dacdbiimpl.cpp @@ -5544,7 +5544,7 @@ HRESULT STDMETHODCALLTYPE DacDbiInterfaceImpl::GetContext(VMPTR_Thread vmThread, UpdateContextFromRegDisp(&tmpRd, &tmpContext); CopyMemory(pContextBuffer, &tmpContext, sizeof(*pContextBuffer)); pContextBuffer->ContextFlags = DT_CONTEXT_CONTROL - #if defined(TARGET_AMD64) || defined(TARGET_ARM) + #if defined(TARGET_AMD64) || defined(TARGET_ARM) || defined(TARGET_ARM64) | DT_CONTEXT_INTEGER #endif ;