Gdb: Limit CPU usage by introducing non agressive GuiSleep in GdbCmd.cpp. Moreover fix issue when GDB interface is still active after setting live breakpoint.

git-svn-id: svn://ultimatepp.org/upp/trunk@12115 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2018-07-29 14:25:40 +00:00
parent 0e507b763d
commit be0ff6854b
2 changed files with 4 additions and 4 deletions

View file

@ -330,10 +330,9 @@ String Gdb::DoRun()
IdeSetBar();
}
ClearCtrls();
String s;
for(;;) {
ClearCtrls();
s = Cmdp("continue");
if(IsNull(bp_filename))
break;

View file

@ -134,8 +134,9 @@ String Gdb::Cmd(const char *command)
ProcessEvents();
ms0 = msecs();
}
// if(s.GetCount() == 0)
GuiSleep(0);
GuiSleep(50);
if(TTYQuit())
Stop();
}