[debugger][android] It was not initialising seq_points on MonoCompile on Android...
authorThays Grazia <thaystg@gmail.com>
Fri, 6 Sep 2019 01:16:50 +0000 (22:16 -0300)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2019 01:16:50 +0000 (22:16 -0300)
Commit migrated from https://github.com/mono/mono/commit/c23a8906f3e0d8572a6c28b06e8a85f3d3c0ea8c

src/mono/mono/mini/debugger-agent.c
src/mono/mono/mini/mini.c

index 6585328..0f1405a 100644 (file)
@@ -4967,12 +4967,8 @@ ss_create_init_args (SingleStepReq *ss_req, SingleStepArgs *args)
                                found_sp = mono_find_prev_seq_point_for_native_offset (frame->de.domain, frame->de.method, frame->de.native_offset, &info, &args->sp);
                                if (!found_sp)
                                        no_seq_points_found (frame->de.method, frame->de.native_offset);
-#if !defined(HOST_ANDROID) && !defined(TARGET_ANDROID)                                 
                                g_assert (found_sp);                            
-#else
-                               if (found_sp) //it will not find the sp if it is a method of class Android.Runtime.DynamicMethodNameCounter
-#endif                         
-                                       method = frame->de.method;
+                               method = frame->de.method;
                        }
                }
        }
index a296d9d..a0042ab 100644 (file)
@@ -3164,13 +3164,6 @@ mini_method_compile (MonoMethod *method, guint32 opts, MonoDomain *domain, JitFl
        cfg->use_current_cpu = (flags & JIT_FLAG_USE_CURRENT_CPU) != 0;
        cfg->backend = current_backend;
 
-#ifdef HOST_ANDROID
-       if (cfg->method->wrapper_type != MONO_WRAPPER_NONE) {
-               /* FIXME: Why is this needed */
-               cfg->gen_seq_points = FALSE;
-               cfg->gen_sdb_seq_points = FALSE;
-       }
-#endif
        if (cfg->method->wrapper_type == MONO_WRAPPER_ALLOC) {
                /* We can't have seq points inside gc critical regions */
                cfg->gen_seq_points = FALSE;