[merp] Restore non-assertion behavior in debugger-engine.c (mono/mono#13865)
authorAlexander Kyte <alexmkyte@gmail.com>
Tue, 9 Apr 2019 02:23:35 +0000 (22:23 -0400)
committerAleksey Kliger (λgeek) <akliger@gmail.com>
Tue, 9 Apr 2019 02:23:35 +0000 (22:23 -0400)
Commit migrated from https://github.com/mono/mono/commit/b0ae9dbdaac492e1a047595c7774ef499658d40a

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

index f960037..e9d7d29 100644 (file)
@@ -337,7 +337,9 @@ mono_de_add_pending_breakpoints (MonoMethod *method, MonoJitInfo *ji)
                                }
                        }
 
-                       g_assert (seq_points);
+                       if (!seq_points)
+                               /* Could be AOT code, or above "search_all_backends" call could have failed */
+                               continue;
 
                        insert_breakpoint (seq_points, domain, ji, bp, NULL);
                }