Skip to content

Commit 7a1f63f

Browse files
thaystgmarek-safar
authored andcommitted
[debugger][android] It was not initialising seq_points on MonoCompile on Android, so when was compiling dynamic methods, seq_points wasn't created and we got the assert when try to single step.
1 parent 29b1ac1 commit 7a1f63f

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

mono/mini/debugger-agent.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4929,12 +4929,8 @@ ss_create_init_args (SingleStepReq *ss_req, SingleStepArgs *args)
49294929
found_sp = mono_find_prev_seq_point_for_native_offset (frame->de.domain, frame->de.method, frame->de.native_offset, &info, &args->sp);
49304930
if (!found_sp)
49314931
no_seq_points_found (frame->de.method, frame->de.native_offset);
4932-
#if !defined(HOST_ANDROID) && !defined(TARGET_ANDROID)
49334932
g_assert (found_sp);
4934-
#else
4935-
if (found_sp) //it will not find the sp if it is a method of class Android.Runtime.DynamicMethodNameCounter
4936-
#endif
4937-
method = frame->de.method;
4933+
method = frame->de.method;
49384934
}
49394935
}
49404936
}

mono/mini/mini.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3148,13 +3148,6 @@ mini_method_compile (MonoMethod *method, guint32 opts, MonoDomain *domain, JitFl
31483148
cfg->interp = (flags & JIT_FLAG_INTERP) != 0;
31493149
cfg->backend = current_backend;
31503150

3151-
#ifdef HOST_ANDROID
3152-
if (cfg->method->wrapper_type != MONO_WRAPPER_NONE) {
3153-
/* FIXME: Why is this needed */
3154-
cfg->gen_seq_points = FALSE;
3155-
cfg->gen_sdb_seq_points = FALSE;
3156-
}
3157-
#endif
31583151
if (cfg->method->wrapper_type == MONO_WRAPPER_ALLOC) {
31593152
/* We can't have seq points inside gc critical regions */
31603153
cfg->gen_seq_points = FALSE;

0 commit comments

Comments
 (0)