@@ -4924,6 +4924,8 @@ clear_breakpoints_for_domain (MonoDomain *domain)
4924
4924
if (inst -> domain == domain ) {
4925
4925
#ifndef IL2CPP_MONO_DEBUGGER
4926
4926
remove_breakpoint (inst );
4927
+ #else
4928
+ inst -> seq_point -> isActive = FALSE;
4927
4929
#endif
4928
4930
4929
4931
g_free (inst );
@@ -11048,7 +11050,7 @@ frame_commands (int command, guint8 *p, guint8 *end, Buffer *buf)
11048
11050
void * var ;
11049
11051
#endif
11050
11052
11051
- t = & frame -> actual_method -> klass -> byval_arg ;
11053
+ t = VM_CLASS_GET_TYPE ( VM_METHOD_GET_DECLARING_TYPE ( frame -> actual_method )) ;
11052
11054
/* Checked by the sender */
11053
11055
g_assert (MONO_TYPE_ISSTRUCT (t ));
11054
11056
@@ -11071,7 +11073,7 @@ frame_commands (int command, guint8 *p, guint8 *end, Buffer *buf)
11071
11073
}
11072
11074
#else
11073
11075
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 )) );
11075
11077
#endif
11076
11078
break ;
11077
11079
}
@@ -11884,7 +11886,7 @@ unity_process_breakpoint_inner(DebuggerTlsData *tls, gboolean from_signal, Il2Cp
11884
11886
11885
11887
for (j = 0 ; j < bp -> children -> len ; ++ j ) {
11886
11888
inst = (BreakpointInstance * )g_ptr_array_index (bp -> children , j );
11887
- if (inst -> il_offset == bp -> il_offset ) {
11889
+ if (inst -> il_offset == sequencePoint -> ilOffset ) {
11888
11890
if (bp -> req -> event_kind == EVENT_KIND_STEP ) {
11889
11891
for (int j = 0 ; j < bp -> children -> len ; ++ j )
11890
11892
{
0 commit comments