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

Commit

Permalink
Merge pull request #4010 from mikem8361/issue3987-rc2
Browse files Browse the repository at this point in the history
Fixed issue #3987 "Debugger fails to stop on entry due to stack walk failure"
  • Loading branch information
joshfree committed Mar 31, 2016
2 parents 7d9f7bf + 7842ba3 commit fc416c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/debug/daccess/dacdbiimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5081,6 +5081,9 @@ void DacDbiInterfaceImpl::Hijack(
// (The hijack function already has the context)
_ASSERTE((pOriginalContext == NULL) == (cbSizeContext == 0));
_ASSERTE(EHijackReason::IsValid(reason));
#ifdef PLATFORM_UNIX
_ASSERTE(!"Not supported on this platform");
#endif

//
// If we hijack a thread which might not be managed we can set vmThread = NULL
Expand Down
2 changes: 2 additions & 0 deletions src/debug/ee/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ Debugger::Debugger()

m_fShutdownMode = false;
m_fDisabled = false;
m_rgHijackFunction = NULL;

#ifdef _DEBUG
InitDebugEventCounting();
Expand Down Expand Up @@ -17092,6 +17093,7 @@ Debugger::EnumMemoryRegions(CLRDataEnumMemoryFlags flags)
{
DAC_ENUM_VTHIS();
SUPPORTS_DAC;
_ASSERTE(m_rgHijackFunction != NULL);

if ( flags != CLRDATA_ENUM_MEM_TRIAGE)
{
Expand Down

0 comments on commit fc416c3

Please sign in to comment.