Skip to content

Boot rom and debugger crash the emulator #38

@widgorama

Description

@widgorama

Docboy compiled with:
CMake: -DENABLE_BOOTROM=ON -DENABLE_CGB=OFF -DENABLE_DEBUGGER=ON
Compiler: Visual Studio 2026

Command: docboy-sdl DMG_ROM.bin "Super Mario Land (World).gb" -d
Behaviour: crashes the emulator, exception thrown at helpers.cpp:115

To prevent the crash, I have added the following code at the beginning of get_watchpoint:

#ifdef ENABLE_BOOTROM
if (!core.gb.mmu.boot_rom_locked && addr >= 0 && addr <= 255) {
        return nullptr;
}
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions