mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
Fix watchpoint segfault when using debug interp without server (#1806)
This commit is contained in:
parent
294a625fe5
commit
ca0b5cf816
|
@ -1157,8 +1157,10 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
#if WASM_ENABLE_DEBUG_INTERP != 0
|
||||||
uint8 *frame_ip_orig = NULL;
|
uint8 *frame_ip_orig = NULL;
|
||||||
WASMDebugInstance *debug_instance = wasm_exec_env_get_instance(exec_env);
|
WASMDebugInstance *debug_instance = wasm_exec_env_get_instance(exec_env);
|
||||||
bh_list *watch_point_list_read = &debug_instance->watch_point_list_read;
|
bh_list *watch_point_list_read =
|
||||||
bh_list *watch_point_list_write = &debug_instance->watch_point_list_write;
|
debug_instance ? &debug_instance->watch_point_list_read : NULL;
|
||||||
|
bh_list *watch_point_list_write =
|
||||||
|
debug_instance ? &debug_instance->watch_point_list_write : NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if WASM_ENABLE_LABELS_AS_VALUES != 0
|
#if WASM_ENABLE_LABELS_AS_VALUES != 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user