wasm-micro-runtime/core/iwasm/libraries/debug-engine
Callum Macmillan c3d66f916e
Add memory watchpoint support for source debugger (#1762)
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.
2022-12-07 17:18:28 +08:00
..
debug_engine.c Add memory watchpoint support for source debugger (#1762) 2022-12-07 17:18:28 +08:00
debug_engine.cmake Implement source debugging for interpreter and AOT (#769) 2021-09-29 13:36:46 +08:00
debug_engine.h Add memory watchpoint support for source debugger (#1762) 2022-12-07 17:18:28 +08:00
gdbserver.c Allow source debugger reconnection (#1667) 2022-11-02 17:12:34 +08:00
gdbserver.h Allow source debugger reconnection (#1667) 2022-11-02 17:12:34 +08:00
handler.c Add memory watchpoint support for source debugger (#1762) 2022-12-07 17:18:28 +08:00
handler.h Allow source debugger reconnection (#1667) 2022-11-02 17:12:34 +08:00
packets.c [debugger enhance] don't block gdbserver thread while executing (#989) 2022-02-16 17:35:35 +08:00
packets.h [debugger enhance] don't block gdbserver thread while executing (#989) 2022-02-16 17:35:35 +08:00
utils.c Enable source debugging feature for windows platform (#910) 2021-12-22 19:52:07 +08:00
utils.h Enable source debugging feature for windows platform (#910) 2021-12-22 19:52:07 +08:00