dirkwhoffmann / Moira

A Motorola 68000 emulator written in C++
https://dirkwhoffmann.github.io/Moira
Other
109 stars 13 forks source link

Breakpoints / Watchpoints are not detected after reset #3

Closed dirkwhoffmann closed 4 years ago

dirkwhoffmann commented 4 years ago

To speed up emulation, breakpoint checking is only performed if a specific flag is set:

    if (flags & CPU_CHECK_BP) {
        if (debugger.breakpointMatches(reg.pc)) {
            breakpointReached(reg.pc);
        } 
    }

During reset(), variable flags is set to a default value which has CPU_CHECK_BP and CPU_CHECK_WP set to 0. These flags must not be cleared if breakpoints / watchpoints are present.

dirkwhoffmann commented 4 years ago

Fixed with the latest merge from vAmiga.

elmerucr commented 4 years ago

Thanks for resolving this one! I noticed it in my latest build of E64-II.