diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-05-29 00:05:08 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-06-04 23:14:52 +0200 |
| commit | cb2d7f800a9fc276b96fd0927fa6d8ec9f5a31c8 (patch) | |
| tree | 3fcd11e34885c4dddc459c875c94e3b958d7750a /win32/gui/WndMain.c | |
| parent | 850010a96b6cbc3eae03edd891e50325e017b678 (diff) | |
Implemented port-specific wrappers and logic for gdb stub
Diffstat (limited to 'win32/gui/WndMain.c')
| -rw-r--r-- | win32/gui/WndMain.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/gui/WndMain.c b/win32/gui/WndMain.c index 374b1877..4c01b200 100644 --- a/win32/gui/WndMain.c +++ b/win32/gui/WndMain.c @@ -238,6 +238,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine RunGui(); + if (Config.GdbServer) dbg_stop(); + return 0; } @@ -1570,7 +1572,7 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar } if (Config.GdbServer) { - GdbStartServer(); + dbg_start(); } SaveConfig(); @@ -1996,8 +1998,7 @@ int SysInit() { LoadMcds(Config.Mcd1, Config.Mcd2); if (Config.Debug) StartDebugger(); - - if (Config.GdbServer) GdbStartServer(); + else if (Config.GdbServer) dbg_start(); return 0; } |
