Index: Dbg.cpp =================================================================== --- Dbg.cpp (revision 6684) +++ Dbg.cpp (working copy) @@ -117,8 +117,10 @@ GuiSleep(sleep); Ctrl::ProcessEvents(); sleep = min(20, sleep + max(1, 3 * sleep / 2)); +#ifdef PLATFORM_POSIX if(TTYQuit()) Stop(); +#endif } Unlock(); #ifdef _DEBUG @@ -143,8 +145,10 @@ String s; // if(!lock) Sleep(0); +#ifdef PLATFORM_POSIX if(TTYQuit()) Stop(); +#endif if(!dbg->Read(s)) { LLOG(result); PutVerbose(result); Index: Gdb.cpp =================================================================== --- Gdb.cpp (revision 6684) +++ Gdb.cpp (working copy) @@ -593,13 +593,17 @@ { IdeRemoveBottom(*this); IdeRemoveRight(disas); +#ifdef PLATFORM_POSIX KillDebugTTY(); +#endif } void Gdb::Periodic() { +#ifdef PLATFORM_POSIX if(TTYQuit()) Stop(); +#endif } Gdb::Gdb() Index: Gdb_MI2.cpp =================================================================== --- Gdb_MI2.cpp (revision 6684) +++ Gdb_MI2.cpp (working copy) @@ -220,8 +220,10 @@ void Gdb_MI2::Periodic() { +#ifdef PLATFORM_POSIX if(TTYQuit()) Stop(); +#endif } Gdb_MI2::Gdb_MI2() @@ -333,7 +335,9 @@ { IdeRemoveBottom(*this); IdeRemoveRight(disas); +#ifdef PLATFORM_POSIX KillDebugTTY(); +#endif } ///////////////////////////////////////////////////////////////////////////////////////////////////////////// Index: Terminal.cpp =================================================================== --- Terminal.cpp (revision 6684) +++ Terminal.cpp (working copy) @@ -77,6 +77,8 @@ return false; } +#endif + String GdbCommand(bool console) { String gdb = "gdb "; @@ -89,5 +91,3 @@ #endif return gdb; } - -#endif