Add command line debugger

This commit is contained in:
kichikuou
2024-12-28 14:09:53 +09:00
parent d6e3cb8415
commit 8883bd5d68
16 changed files with 1128 additions and 16 deletions
+7
View File
@@ -4,6 +4,7 @@
#include "fileio.h"
#include "texthook.h"
#include "sys/nact.h"
#include "debugger/debugger.h"
#ifdef _WIN32
#include <direct.h>
#else
@@ -108,6 +109,12 @@ int main(int argc, char *argv[])
texthook_set_mode(config.texthook_mode);
texthook_set_suppression_list(config.texthook_suppressions.c_str());
#ifdef ENABLE_DEBUGGER
if (config.debugger_mode != DebuggerMode::DISABLED) {
g_debugger = std::make_unique<debugger::Debugger>("ADISK.DAT.symbols", config.debugger_mode);
}
#endif
int exit_code = 0;
while (g_nact) {
exit_code = g_nact->mainloop();