Skip to content

Commit 002f1b2

Browse files
authored
Report program state in RTM builds (#3524)
***NO_CI***
1 parent 3fed8c2 commit 002f1b2

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/CLR/Core/Execution.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,7 @@ HRESULT CLR_RT_ExecutionEngine::Execute(wchar_t *entryPointArgs, int maxContextS
638638

639639
NANOCLR_CHECK_HRESULT(WaitForDebugger());
640640

641-
#if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
642641
CLR_EE_DBG_SET_MASK(StateProgramRunning, StateMask);
643-
#endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
644642

645643
NANOCLR_CHECK_HRESULT(CLR_RT_HeapBlock_Delegate::CreateInstance(ref, g_CLR_RT_TypeSystem.m_entryPoint, NULL));
646644

src/CLR/Startup/CLRStartup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ void ClrStartup(CLR_SETTINGS params)
425425

426426
if (CLR_EE_DBG_IS_NOT(RebootPending))
427427
{
428-
#if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
429428
CLR_EE_DBG_SET_MASK(StateProgramExited, StateMask);
429+
#if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
430430
CLR_EE_DBG_EVENT_BROADCAST(CLR_DBG_Commands_c_Monitor_ProgramExit, 0, NULL, WP_Flags_c_NonCritical);
431431
#endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
432432

0 commit comments

Comments
 (0)