Skip to content

Commit 0299a6b

Browse files
jechterjoncham
authored andcommitted
Remove no longer needed debugger check code
1 parent a782c27 commit 0299a6b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

mono/mini/debugger-agent.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,12 +1161,6 @@ void mono_debugger_install_runtime_callbacks(MonoDebuggerRuntimeCallbacks* cbs)
11611161
callbacks = *cbs;
11621162
}
11631163

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-
11701164
gboolean unity_debugger_agent_is_global_breakpoint_active()
11711165
{
11721166
if (!ss_req)
@@ -1180,13 +1174,9 @@ int32_t unity_debugger_agent_is_single_stepping ()
11801174
return ss_count;
11811175
}
11821176

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)
11851177
#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)
11861178
#else
11871179

1188-
#define INC_PAUSE_COUNT()
1189-
#define DEC_PAUSE_COUNT()
11901180
#define UPDATE_PAUSE_STATE()
11911181

11921182
#endif // RUNTIME_IL2CPP
@@ -4864,7 +4854,6 @@ set_breakpoint (MonoMethod *method, long il_offset, EventRequest *req, MonoError
48644854
inst->seq_point = seqPoint;
48654855

48664856
seqPoint->isActive++;
4867-
INC_PAUSE_COUNT();
48684857

48694858
mono_loader_lock();
48704859
g_ptr_array_add(bp->children, inst);
@@ -4954,7 +4943,6 @@ static MonoBreakpoint* set_breakpoint_fast(Il2CppSequencePoint *sp, EventRequest
49544943
inst->seq_point = sp;
49554944

49564945
sp->isActive++;
4957-
INC_PAUSE_COUNT();
49584946

49594947
mono_loader_lock();
49604948
g_ptr_array_add(bp->children, inst);
@@ -4991,7 +4979,6 @@ clear_breakpoint (MonoBreakpoint *bp)
49914979
remove_breakpoint(inst);
49924980
#else
49934981
inst->seq_point->isActive--;
4994-
DEC_PAUSE_COUNT();
49954982
#endif
49964983

49974984
g_free (inst);
@@ -5069,7 +5056,6 @@ clear_breakpoints_for_domain (MonoDomain *domain)
50695056
remove_breakpoint (inst);
50705057
#else
50715058
inst->seq_point->isActive--;
5072-
DEC_PAUSE_COUNT();
50735059
#endif
50745060

50755061
g_free (inst);
@@ -6031,7 +6017,6 @@ start_single_stepping (void)
60316017
#ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED
60326018
int val = mono_atomic_inc_i32 (&ss_count);
60336019
UPDATE_PAUSE_STATE();
6034-
INC_PAUSE_COUNT();
60356020

60366021
if (val == 1) {
60376022
mono_arch_start_single_stepping ();
@@ -6050,7 +6035,6 @@ stop_single_stepping (void)
60506035
#ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED
60516036
int val = mono_atomic_dec_i32 (&ss_count);
60526037
UPDATE_PAUSE_STATE();
6053-
DEC_PAUSE_COUNT();
60546038

60556039
if (val == 0) {
60566040
mono_arch_stop_single_stepping ();
@@ -6567,7 +6551,6 @@ ss_create (MonoInternalThread *thread, StepSize size, StepDepth depth, StepFilte
65676551
DEBUG_PRINTF (1, "[dbg] Starting single step of thread %p (depth=%s).\n", thread, ss_depth_to_string (depth));
65686552

65696553
ss_req = g_new0 (SingleStepReq, 1);
6570-
INC_PAUSE_COUNT();
65716554
ss_req->req = req;
65726555
ss_req->thread = thread;
65736556
ss_req->size = size;
@@ -6709,7 +6692,6 @@ ss_destroy (SingleStepReq *req)
67096692
ss_stop (ss_req);
67106693

67116694
g_free (ss_req);
6712-
DEC_PAUSE_COUNT();
67136695
ss_req = NULL;
67146696
}
67156697

0 commit comments

Comments
 (0)