@@ -249,7 +249,7 @@ HRESULT CLR_RT_Thread::CreateInstance(int pid, int priority, CLR_RT_Thread *&th,
249249 // If debugger creates managed thread for function evaluation, then m_realThread points to the thread that has
250250 // focus in debugger
251251 th->m_realThread = th; // CLR_RT_Thread* m_realThread
252- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
252+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
253253
254254 // --//
255255
@@ -263,7 +263,7 @@ HRESULT CLR_RT_Thread::CreateInstance(int pid, int priority, CLR_RT_Thread *&th,
263263 //
264264 g_CLR_RT_ExecutionEngine.Breakpoint_Thread_Created (th);
265265 }
266- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
266+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
267267 }
268268
269269 NANOCLR_NOCLEANUP ();
@@ -449,7 +449,7 @@ void CLR_RT_Thread::OnThreadTerminated()
449449 {
450450 g_CLR_RT_ExecutionEngine.Breakpoint_Thread_Terminated (this );
451451 }
452- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
452+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
453453}
454454
455455void CLR_RT_Thread::Passivate ()
@@ -624,7 +624,7 @@ HRESULT CLR_RT_Thread::ProcessException_EndFilter()
624624 // We don't want to send any breakpoints until after we set the IP appropriately
625625 bool fBreakpointsDisabledSav = CLR_EE_DBG_IS (BreakpointsDisabled);
626626 CLR_EE_DBG_SET (BreakpointsDisabled);
627- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
627+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
628628
629629 stack->Pop ();
630630
@@ -633,7 +633,7 @@ HRESULT CLR_RT_Thread::ProcessException_EndFilter()
633633 {
634634 CLR_EE_DBG_CLR (BreakpointsDisabled);
635635 }
636- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
636+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
637637
638638 if (choice == 1 )
639639 {
@@ -644,7 +644,7 @@ HRESULT CLR_RT_Thread::ProcessException_EndFilter()
644644 us.m_handlerStack ,
645645 CLR_DBG_Commands::Debugging_Execution_BreakpointDef::c_DEPTH_EXCEPTION_HANDLER_FOUND,
646646 us.m_handlerBlockStart );
647- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
647+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
648648 }
649649 else
650650 {
@@ -663,7 +663,7 @@ HRESULT CLR_RT_Thread::ProcessException_EndFilter()
663663 m_currentException.SetObjectReference (us.m_exception );
664664 NANOCLR_SET_AND_LEAVE (CLR_E_PROCESS_EXCEPTION);
665665 }
666- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
666+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
667667
668668 (void )ProcessException ();
669669
@@ -722,7 +722,7 @@ HRESULT CLR_RT_Thread::ProcessException_EndFinally()
722722 {
723723 g_CLR_RT_ExecutionEngine.Breakpoint_StackFrame_Step (stack, stack->m_IP );
724724 }
725- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
725+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
726726
727727 NANOCLR_SET_AND_LEAVE (S_OK);
728728 }
@@ -821,7 +821,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase1()
821821 }
822822 }
823823 }
824- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
824+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
825825
826826 if (stack->m_call .m_target ->flags & CLR_RECORD_METHODDEF::MD_HasExceptionHandlers)
827827 {
@@ -872,7 +872,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase1()
872872 // We don't want to send any breakpoints until after we set the IP appropriately
873873 bool fBreakpointsDisabledSav = CLR_EE_DBG_IS (BreakpointsDisabled);
874874 CLR_EE_DBG_SET (BreakpointsDisabled);
875- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
875+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
876876
877877 hr = CLR_RT_StackFrame::Push (stack->m_owningThread , stack->m_call , numArgs);
878878
@@ -881,7 +881,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase1()
881881 {
882882 CLR_EE_DBG_CLR (BreakpointsDisabled);
883883 }
884- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
884+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
885885
886886 if (FAILED (hr))
887887 { // We probably ran out of memory. In either case, don't run this handler.
@@ -921,7 +921,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase1()
921921 g_CLR_RT_ExecutionEngine.Breakpoint_StackFrame_Push (
922922 newStack,
923923 CLR_DBG_Commands::Debugging_Execution_BreakpointDef::c_DEPTH_STEP_INTERCEPT);
924- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
924+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
925925
926926 // Return a success value to break out of ProcessException and to signal that execution of IL
927927 // can continue.
@@ -944,7 +944,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase1()
944944 goto ContinueAndExit;
945945 }
946946 }
947- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
947+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
948948
949949 // We want to continue running EH "goo" code so leave m_currentException set and return
950950 // PROCESS_EXCEPTION
@@ -976,7 +976,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase1()
976976 goto ContinueAndExit;
977977 }
978978 }
979- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
979+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
980980
981981 NANOCLR_SET_AND_LEAVE (CLR_E_PROCESS_EXCEPTION);
982982 }
@@ -1020,14 +1020,14 @@ HRESULT CLR_RT_Thread::ProcessException_Phase1()
10201020 goto ContinueAndExit;
10211021 }
10221022 }
1023- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1023+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
10241024
10251025 // We want to continue running EH "goo" code so leave m_currentException set and return PROCESS_EXCEPTION
10261026 NANOCLR_SET_AND_LEAVE (CLR_E_PROCESS_EXCEPTION);
10271027
10281028#if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
10291029ContinueAndExit:
1030- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1030+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
10311031
10321032 // There are multiple cases where we want to break out of this function, send debug messages, and then resume
10331033 // exactly where we were. All of those cases jump to here. However, there are cases where we may be stopped but we
@@ -1089,7 +1089,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
10891089 NANOCLR_SET_AND_LEAVE (S_OK);
10901090 }
10911091 else
1092- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1092+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
10931093 if (iterStack->m_call .m_target ->flags & CLR_RECORD_METHODDEF::MD_HasExceptionHandlers)
10941094 {
10951095 if (iterStack
@@ -1126,7 +1126,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
11261126 {
11271127 g_CLR_RT_ExecutionEngine.Breakpoint_StackFrame_Pop (iterStack, true );
11281128 }
1129- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1129+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
11301130
11311131 NANOCLR_SET_AND_LEAVE (S_OK);
11321132 }
@@ -1163,7 +1163,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
11631163 {
11641164 g_CLR_RT_ExecutionEngine.Breakpoint_StackFrame_Pop (iterStack, true );
11651165 }
1166- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1166+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
11671167
11681168 // Return a success value to break out of ProcessException and to signal that execution of
11691169 // IL can continue.
@@ -1199,7 +1199,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
11991199 // We don't want to send any breakpoints until after we set the IP appropriately
12001200 bool fBreakpointsDisabledSav = CLR_EE_DBG_IS (BreakpointsDisabled);
12011201 CLR_EE_DBG_SET (BreakpointsDisabled);
1202- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1202+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
12031203
12041204 iterStack->Pop (); // No finally's for the current ip in this method, pop to the next.
12051205
@@ -1208,7 +1208,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
12081208 {
12091209 CLR_EE_DBG_CLR (BreakpointsDisabled);
12101210 }
1211- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1211+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
12121212
12131213 m_currentException.SetObjectReference (otherUnwindStack.m_exception ); // Drop current exception, use old one.
12141214
@@ -1234,7 +1234,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
12341234#if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
12351235 bool fBreakpointsDisabledSav = CLR_EE_DBG_IS (BreakpointsDisabled);
12361236 CLR_EE_DBG_SET (BreakpointsDisabled);
1237- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1237+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
12381238
12391239#ifndef NANOCLR_NO_IL_INLINE
12401240 if (iterStack->m_inlineFrame )
@@ -1252,7 +1252,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
12521252 {
12531253 CLR_EE_DBG_CLR (BreakpointsDisabled);
12541254 }
1255- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1255+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
12561256
12571257 // We are not ready to execute IL yet so do NOT clear m_currentException flag.
12581258 // There still remains hope for this thread so return S_OK so ProcessException can get called again via
@@ -1267,7 +1267,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
12671267 // We don't want to send any breakpoints until after we set the IP appropriately
12681268 bool fBreakpointsDisabledSav = CLR_EE_DBG_IS (BreakpointsDisabled);
12691269 CLR_EE_DBG_SET (BreakpointsDisabled);
1270- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1270+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
12711271
12721272#ifndef NANOCLR_NO_IL_INLINE
12731273 if (iterStack->m_inlineFrame )
@@ -1286,7 +1286,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
12861286 {
12871287 CLR_EE_DBG_CLR (BreakpointsDisabled);
12881288 }
1289- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1289+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
12901290 }
12911291
12921292 // If we reached this point, we've unwound the entire thread and have an unhandled exception.
@@ -1307,7 +1307,7 @@ HRESULT CLR_RT_Thread::ProcessException_Phase2()
13071307 // retrieved?
13081308 }
13091309#endif // ! BUILD_RTM
1310- #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
1310+ #endif // #if defined(NANOCLR_ENABLE_SOURCELEVELDEBUGGING)
13111311 NANOCLR_SET_AND_LEAVE (CLR_E_PROCESS_EXCEPTION);
13121312 NANOCLR_NOCLEANUP ();
13131313}
0 commit comments