wokwi / rp2040js

A Raspberry Pi Pico Emulator in JavaScript
MIT License
389 stars 40 forks source link

Missing `breakRewind` in BKPT #55

Closed urish closed 3 years ago

urish commented 3 years ago

We use the breakRewind variable to track how many instruction bytes we need to rewind when a breakpoint is hit (so that the program is stopped at the break point instruction, and not after it). We do it for UDF.N and UDF.N, but not for BKPT.

GDB sometimes uses BKPT for breakpoints, so not rewinding correctly confuses GDB.