@@ -107,9 +107,6 @@ execute_main(WASMModuleInstanceCommon *module_inst, int32 argc, char *argv[])
107107 the actual main function. Directly calling main function
108108 may cause exception thrown. */
109109 if ((func = wasm_runtime_lookup_wasi_start_function (module_inst ))) {
110- #if WASM_ENABLE_DEBUG_INTERP != 0
111- wasm_runtime_start_debug_instance (exec_env );
112- #endif
113110 return wasm_runtime_call_wasm (exec_env , func , 0 , NULL );
114111 }
115112#endif /* end of WASM_ENABLE_LIBC_WASI */
@@ -191,10 +188,6 @@ execute_main(WASMModuleInstanceCommon *module_inst, int32 argc, char *argv[])
191188 (uint32 )wasm_runtime_addr_native_to_app (module_inst , argv_offsets );
192189 }
193190
194- #if WASM_ENABLE_DEBUG_INTERP != 0
195- wasm_runtime_start_debug_instance (exec_env );
196- #endif
197-
198191 ret = wasm_runtime_call_wasm (exec_env , func , argc1 , argv1 );
199192 if (ret && func_type -> result_count > 0 && argc > 0 && argv )
200193 /* copy the return value */
@@ -618,10 +611,6 @@ execute_func(WASMModuleInstanceCommon *module_inst, const char *name,
618611 goto fail ;
619612 }
620613
621- #if WASM_ENABLE_DEBUG_INTERP != 0
622- wasm_runtime_start_debug_instance (exec_env );
623- #endif
624-
625614 if (!wasm_runtime_call_wasm (exec_env , target_func , argc1 , argv1 )) {
626615 goto fail ;
627616 }
0 commit comments