@@ -1161,12 +1161,6 @@ void mono_debugger_install_runtime_callbacks(MonoDebuggerRuntimeCallbacks* cbs)
1161
1161
callbacks = * cbs ;
1162
1162
}
1163
1163
1164
- uint32_t * g_unity_check ;
1165
- void mono_debugger_install_sequence_point_check (volatile uint32_t * check )
1166
- {
1167
- g_unity_check = check ;
1168
- }
1169
-
1170
1164
gboolean unity_debugger_agent_is_global_breakpoint_active ()
1171
1165
{
1172
1166
if (!ss_req )
@@ -1180,13 +1174,9 @@ int32_t unity_debugger_agent_is_single_stepping ()
1180
1174
return ss_count ;
1181
1175
}
1182
1176
1183
- #define INC_PAUSE_COUNT () do { mono_atomic_inc_i32 (g_unity_check); } while (0)
1184
- #define DEC_PAUSE_COUNT () do { mono_atomic_dec_i32 (g_unity_check); } while (0)
1185
1177
#define UPDATE_PAUSE_STATE () do { g_unity_pause_point_active = unity_debugger_agent_is_global_breakpoint_active() || unity_debugger_agent_is_single_stepping(); } while (0)
1186
1178
#else
1187
1179
1188
- #define INC_PAUSE_COUNT ()
1189
- #define DEC_PAUSE_COUNT ()
1190
1180
#define UPDATE_PAUSE_STATE ()
1191
1181
1192
1182
#endif // RUNTIME_IL2CPP
@@ -4864,7 +4854,6 @@ set_breakpoint (MonoMethod *method, long il_offset, EventRequest *req, MonoError
4864
4854
inst -> seq_point = seqPoint ;
4865
4855
4866
4856
seqPoint -> isActive ++ ;
4867
- INC_PAUSE_COUNT ();
4868
4857
4869
4858
mono_loader_lock ();
4870
4859
g_ptr_array_add (bp -> children , inst );
@@ -4954,7 +4943,6 @@ static MonoBreakpoint* set_breakpoint_fast(Il2CppSequencePoint *sp, EventRequest
4954
4943
inst -> seq_point = sp ;
4955
4944
4956
4945
sp -> isActive ++ ;
4957
- INC_PAUSE_COUNT ();
4958
4946
4959
4947
mono_loader_lock ();
4960
4948
g_ptr_array_add (bp -> children , inst );
@@ -4991,7 +4979,6 @@ clear_breakpoint (MonoBreakpoint *bp)
4991
4979
remove_breakpoint (inst );
4992
4980
#else
4993
4981
inst -> seq_point -> isActive -- ;
4994
- DEC_PAUSE_COUNT ();
4995
4982
#endif
4996
4983
4997
4984
g_free (inst );
@@ -5069,7 +5056,6 @@ clear_breakpoints_for_domain (MonoDomain *domain)
5069
5056
remove_breakpoint (inst );
5070
5057
#else
5071
5058
inst -> seq_point -> isActive -- ;
5072
- DEC_PAUSE_COUNT ();
5073
5059
#endif
5074
5060
5075
5061
g_free (inst );
@@ -6031,7 +6017,6 @@ start_single_stepping (void)
6031
6017
#ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED
6032
6018
int val = mono_atomic_inc_i32 (& ss_count );
6033
6019
UPDATE_PAUSE_STATE ();
6034
- INC_PAUSE_COUNT ();
6035
6020
6036
6021
if (val == 1 ) {
6037
6022
mono_arch_start_single_stepping ();
@@ -6050,7 +6035,6 @@ stop_single_stepping (void)
6050
6035
#ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED
6051
6036
int val = mono_atomic_dec_i32 (& ss_count );
6052
6037
UPDATE_PAUSE_STATE ();
6053
- DEC_PAUSE_COUNT ();
6054
6038
6055
6039
if (val == 0 ) {
6056
6040
mono_arch_stop_single_stepping ();
@@ -6567,7 +6551,6 @@ ss_create (MonoInternalThread *thread, StepSize size, StepDepth depth, StepFilte
6567
6551
DEBUG_PRINTF (1 , "[dbg] Starting single step of thread %p (depth=%s).\n" , thread , ss_depth_to_string (depth ));
6568
6552
6569
6553
ss_req = g_new0 (SingleStepReq , 1 );
6570
- INC_PAUSE_COUNT ();
6571
6554
ss_req -> req = req ;
6572
6555
ss_req -> thread = thread ;
6573
6556
ss_req -> size = size ;
@@ -6709,7 +6692,6 @@ ss_destroy (SingleStepReq *req)
6709
6692
ss_stop (ss_req );
6710
6693
6711
6694
g_free (ss_req );
6712
- DEC_PAUSE_COUNT ();
6713
6695
ss_req = NULL ;
6714
6696
}
6715
6697
0 commit comments