Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 2337ed9

Browse files
author
Mike McLaughlin
committed
Fix build break from CL#1544863 Part II
[tfs-changeset: 1545169]
1 parent 6d24029 commit 2337ed9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/debug/daccess/dacfn.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ DacWriteAll(TADDR addr, PVOID buffer, ULONG32 size, bool throwEx)
218218
return S_OK;
219219
}
220220

221+
#if defined(WIN64EXCEPTIONS) && defined(FEATURE_PAL)
221222
HRESULT
222223
DacVirtualUnwind(DWORD threadId, PCONTEXT context, PT_KNONVOLATILE_CONTEXT_POINTERS contextPointers)
223224
{
@@ -242,6 +243,7 @@ DacVirtualUnwind(DWORD threadId, PCONTEXT context, PT_KNONVOLATILE_CONTEXT_POINT
242243

243244
return hr;
244245
}
246+
#endif // defined(WIN64EXCEPTIONS) && defined(FEATURE_PAL)
245247

246248
// DacAllocVirtual - Allocate memory from the target process
247249
// Note: this is only available to clients supporting the legacy

src/inc/daccess.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,6 @@ HRESULT DacFreeVirtual(TADDR mem, ULONG32 size, ULONG32 typeFlags,
663663
PVOID DacInstantiateTypeByAddress(TADDR addr, ULONG32 size, bool throwEx);
664664
PVOID DacInstantiateTypeByAddressNoReport(TADDR addr, ULONG32 size, bool throwEx);
665665
PVOID DacInstantiateClassByVTable(TADDR addr, ULONG32 minSize, bool throwEx);
666-
HRESULT DacVirtualUnwind(ULONG32 threadId, PCONTEXT context, PT_KNONVOLATILE_CONTEXT_POINTERS contextPointers);
667666

668667
// Copy a null-terminated ascii or unicode string from the target to the host.
669668
// Note that most of the work here is to find the null terminator. If you know the exact length,
@@ -780,6 +779,11 @@ struct _UNWIND_INFO * DacGetUnwindInfo(TADDR taUnwindInfo);
780779
// virtually unwind a CONTEXT out-of-process
781780
struct _KNONVOLATILE_CONTEXT_POINTERS;
782781
BOOL DacUnwindStackFrame(T_CONTEXT * pContext, T_KNONVOLATILE_CONTEXT_POINTERS* pContextPointers);
782+
783+
#if defined(FEATURE_PAL)
784+
// call back through data target to unwind out-of-process
785+
HRESULT DacVirtualUnwind(ULONG32 threadId, PCONTEXT context, PT_KNONVOLATILE_CONTEXT_POINTERS contextPointers);
786+
#endif // FEATURE_PAL
783787
#endif // _WIN64
784788

785789
#ifdef FEATURE_MINIMETADATA_IN_TRIAGEDUMPS

0 commit comments

Comments
 (0)