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

Commit fc416c3

Browse files
committed
Merge pull request #4010 from mikem8361/issue3987-rc2
Fixed issue #3987 "Debugger fails to stop on entry due to stack walk failure"
2 parents 7d9f7bf + 7842ba3 commit fc416c3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/debug/daccess/dacdbiimpl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5081,6 +5081,9 @@ void DacDbiInterfaceImpl::Hijack(
50815081
// (The hijack function already has the context)
50825082
_ASSERTE((pOriginalContext == NULL) == (cbSizeContext == 0));
50835083
_ASSERTE(EHijackReason::IsValid(reason));
5084+
#ifdef PLATFORM_UNIX
5085+
_ASSERTE(!"Not supported on this platform");
5086+
#endif
50845087

50855088
//
50865089
// If we hijack a thread which might not be managed we can set vmThread = NULL

src/debug/ee/debugger.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,7 @@ Debugger::Debugger()
983983

984984
m_fShutdownMode = false;
985985
m_fDisabled = false;
986+
m_rgHijackFunction = NULL;
986987

987988
#ifdef _DEBUG
988989
InitDebugEventCounting();
@@ -17092,6 +17093,7 @@ Debugger::EnumMemoryRegions(CLRDataEnumMemoryFlags flags)
1709217093
{
1709317094
DAC_ENUM_VTHIS();
1709417095
SUPPORTS_DAC;
17096+
_ASSERTE(m_rgHijackFunction != NULL);
1709517097

1709617098
if ( flags != CLRDATA_ENUM_MEM_TRIAGE)
1709717099
{

0 commit comments

Comments
 (0)