[interp] Disable computed goto when debugging interp
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 12 Sep 2019 11:25:45 +0000 (14:25 +0300)
committerLarry Ewing <lewing@microsoft.com>
Fri, 13 Sep 2019 00:29:13 +0000 (19:29 -0500)
It makes tracing and following the code more painful.

Commit migrated from https://github.com/mono/mono/commit/6d75b066eebbc98331edfcfcbca38016adafc009

src/mono/mono/mini/interp/interp.c

index 0638453..28ad6b8 100644 (file)
@@ -207,7 +207,7 @@ int mono_interp_traceopt = 0;
 
 #endif
 
-#if defined(__GNUC__) && !defined(TARGET_WASM) && !COUNT_OPS
+#if defined(__GNUC__) && !defined(TARGET_WASM) && !COUNT_OPS && !DEBUG_INTERP
 #define USE_COMPUTED_GOTO 1
 #endif