Skip to content

Commit a5753ea

Browse files
interp debugger: Fix setting invalid value to step_count (#3583)
The `exec_env->current_status->step_count` should be set same as the handling when WASM_ENABLE_LABELS_AS_VALUES is not 0. Fixes issue #3475.
1 parent 77da87c commit a5753ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/iwasm/interpreter/wasm_interp_classic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ wasm_interp_call_func_import(WASMModuleInstance *module_inst,
14241424
#define HANDLE_OP_END() \
14251425
os_mutex_lock(&exec_env->wait_lock); \
14261426
if (exec_env->current_status->signal_flag == WAMR_SIG_SINGSTEP \
1427-
&& exec_env->current_status->step_count++ == 2) { \
1427+
&& exec_env->current_status->step_count++ == 1) { \
14281428
exec_env->current_status->step_count = 0; \
14291429
SYNC_ALL_TO_FRAME(); \
14301430
wasm_cluster_thread_waiting_run(exec_env); \

0 commit comments

Comments
 (0)