mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-10-27 03:11:18 +00:00
Allow to add watchpoints to variables for source debugging. For instance: `breakpoint set variable var` will pause WAMR execution when the address at var is written to. Can also set read/write watchpoints by passing r/w flags. This will pause execution when the address at var is read: `watchpoint set variable -w read var` Add two linked lists for read/write watchpoints. When the debug message handler receives a watchpoint request, it adds/removes to one/both of these lists. In the interpreter, when an address is read or stored to, check whether the address is in these lists. If so, throw a sigtrap and suspend the process. |
||
|---|---|---|
| .. | ||
| iwasm_interp.cmake | ||
| SConscript | ||
| wasm_interp_classic.c | ||
| wasm_interp_fast.c | ||
| wasm_interp.h | ||
| wasm_loader.c | ||
| wasm_loader.h | ||
| wasm_mini_loader.c | ||
| wasm_opcode.h | ||
| wasm_runtime.c | ||
| wasm_runtime.h | ||
| wasm.h | ||