Skip to content

Commit 01c3985

Browse files
author
brianradunity
authored
Merge pull request #721 from Unity-Technologies/unity-master-staging-il2cpp-managed-debugger
il2cpp managed debugger unit tests
2 parents 8bc43b8 + b92f5cf commit 01c3985

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mono/mini/debugger-agent.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4924,6 +4924,8 @@ clear_breakpoints_for_domain (MonoDomain *domain)
49244924
if (inst->domain == domain) {
49254925
#ifndef IL2CPP_MONO_DEBUGGER
49264926
remove_breakpoint (inst);
4927+
#else
4928+
inst->seq_point->isActive = FALSE;
49274929
#endif
49284930

49294931
g_free (inst);
@@ -11048,7 +11050,7 @@ frame_commands (int command, guint8 *p, guint8 *end, Buffer *buf)
1104811050
void *var;
1104911051
#endif
1105011052

11051-
t = &frame->actual_method->klass->byval_arg;
11053+
t = VM_CLASS_GET_TYPE(VM_METHOD_GET_DECLARING_TYPE(frame->actual_method));
1105211054
/* Checked by the sender */
1105311055
g_assert (MONO_TYPE_ISSTRUCT (t));
1105411056

@@ -11071,7 +11073,7 @@ frame_commands (int command, guint8 *p, guint8 *end, Buffer *buf)
1107111073
}
1107211074
#else
1107311075
GetVariable (tls, frame, kMethodVariableKindC_This, 0, &t, &var);
11074-
il2cpp_set_var (val_buf, var, t);
11076+
il2cpp_set_var(val_buf, var, VM_CLASS_GET_THIS_ARG(VM_METHOD_GET_DECLARING_TYPE(frame->actual_method)));
1107511077
#endif
1107611078
break;
1107711079
}
@@ -11884,7 +11886,7 @@ unity_process_breakpoint_inner(DebuggerTlsData *tls, gboolean from_signal, Il2Cp
1188411886

1188511887
for (j = 0; j < bp->children->len; ++j) {
1188611888
inst = (BreakpointInstance *)g_ptr_array_index(bp->children, j);
11887-
if (inst->il_offset == bp->il_offset) {
11889+
if (inst->il_offset == sequencePoint->ilOffset) {
1188811890
if (bp->req->event_kind == EVENT_KIND_STEP) {
1188911891
for (int j = 0; j < bp->children->len; ++j)
1189011892
{

0 commit comments

Comments
 (0)