Make DEBUGGER compile again (without APU debugger)

This commit is contained in:
OV2 2017-10-05 19:22:02 +02:00
parent e4d08bb71a
commit a95d69c051
4 changed files with 12 additions and 6 deletions

View File

@ -6,7 +6,8 @@
#define SMP_CPP #define SMP_CPP
namespace SNES { namespace SNES {
#if defined(DEBUGGER) // TODO: reactivate once APU debugger works again
#if 0 // DEBUGGER
#include "debugger/debugger.cpp" #include "debugger/debugger.cpp"
#include "debugger/disassembler.cpp" #include "debugger/disassembler.cpp"
SMPDebugger smp; SMPDebugger smp;

View File

@ -124,7 +124,8 @@ public:
inline uint8 op_ror (uint8 x); inline uint8 op_ror (uint8 x);
}; };
#if defined(DEBUGGER) // TODO: reactivate once APU debugger works again
#if 0 // DEBUGGER
#include "debugger/debugger.hpp" #include "debugger/debugger.hpp"
extern SMPDebugger smp; extern SMPDebugger smp;
#else #else

View File

@ -1578,8 +1578,9 @@ static void debug_process_command (char *Line)
printf("HC event tracing %s.\n", Settings.TraceHCEvent ? "enabled" : "disabled"); printf("HC event tracing %s.\n", Settings.TraceHCEvent ? "enabled" : "disabled");
} }
if (*Line == 'A') // TODO: reactivate once APU debugger works again
spc_core->debug_toggle_trace(); /*if (*Line == 'A')
spc_core->debug_toggle_trace();*/
/* /*
if (*Line == 'B') if (*Line == 'B')

View File

@ -2424,7 +2424,8 @@ LRESULT CALLBACK WinProc(
Settings.Paused = FALSE; Settings.Paused = FALSE;
break; break;
case ID_DEBUG_APU_TRACE: case ID_DEBUG_APU_TRACE:
spc_core->debug_toggle_trace(); // TODO: reactivate once APU debugger works again
//spc_core->debug_toggle_trace();
break; break;
#endif #endif
case IDM_ROM_INFO: case IDM_ROM_INFO:
@ -3994,7 +3995,9 @@ static void CheckMenuStates ()
#ifdef DEBUGGER #ifdef DEBUGGER
mii.fState = (CPU.Flags & TRACE_FLAG) ? MFS_CHECKED : MFS_UNCHECKED; mii.fState = (CPU.Flags & TRACE_FLAG) ? MFS_CHECKED : MFS_UNCHECKED;
SetMenuItemInfo (GUI.hMenu, ID_DEBUG_TRACE, FALSE, &mii); SetMenuItemInfo (GUI.hMenu, ID_DEBUG_TRACE, FALSE, &mii);
mii.fState = (spc_core->debug_is_enabled()) ? MFS_CHECKED : MFS_UNCHECKED; // TODO: reactivate once APU debugger works again
//mii.fState = (spc_core->debug_is_enabled()) ? MFS_CHECKED : MFS_UNCHECKED;
mii.fState = MFS_UNCHECKED;
SetMenuItemInfo (GUI.hMenu, ID_DEBUG_APU_TRACE, FALSE, &mii); SetMenuItemInfo (GUI.hMenu, ID_DEBUG_APU_TRACE, FALSE, &mii);
#endif #endif