TOPLLab / WARDuino

📟 A dynamic WebAssembly VM for embedded systems
https://topllab.github.io/WARDuino/
Mozilla Public License 2.0
72 stars 7 forks source link

Fix step over not stepping if at a breakpoint placed on a call instruction #219

Closed MaartenS11 closed 6 months ago

MaartenS11 commented 6 months ago

Step over does not work if the current opcode is a call instruction and there is a breakpoint on it. The handleSTEP function skips breakpoints but if the current opcode is a call or indirect call instruction we just set a mark and put the vm in running state. If the current pc is a breakpoint the vm never goes any further because it instantly hits the breakpoint.