]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Initialize debugger early (m68k status dump disassembly fix)
authorToni Wilen <twilen@winuae.net>
Sat, 7 Jan 2023 12:36:23 +0000 (14:36 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 7 Jan 2023 12:36:23 +0000 (14:36 +0200)
main.cpp

index f370f009831d0917dcdd4295095fb581fb018ca2..7f24a4abb4a1de6b06d27fb9a5218b74ae628e23 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -1169,6 +1169,9 @@ static int real_main2 (int argc, TCHAR **argv)
        savestate_init ();
        keybuf_init (); /* Must come after init_joystick */
 
+#ifdef DEBUGGER
+       disasm_init();
+#endif
        memory_hardreset (2);
        memory_reset ();
 
@@ -1191,8 +1194,10 @@ static int real_main2 (int argc, TCHAR **argv)
 
        if (graphics_init (true)) {
                setup_brkhandler ();
+#ifdef DEBUGGER
                if (currprefs.start_debugger && debuggable ())
                        activate_debugger ();
+#endif
 
                if (!init_audio ()) {
                        if (sound_available && currprefs.produce_sound > 1) {