mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 14:16:10 -06:00
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:
parent
0e507b763d
commit
be0ff6854b
2 changed files with 4 additions and 4 deletions
|
|
@ -330,10 +330,9 @@ String Gdb::DoRun()
|
|||
IdeSetBar();
|
||||
}
|
||||
|
||||
ClearCtrls();
|
||||
|
||||
String s;
|
||||
for(;;) {
|
||||
ClearCtrls();
|
||||
s = Cmdp("continue");
|
||||
if(IsNull(bp_filename))
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -134,8 +134,9 @@ String Gdb::Cmd(const char *command)
|
|||
ProcessEvents();
|
||||
ms0 = msecs();
|
||||
}
|
||||
// if(s.GetCount() == 0)
|
||||
GuiSleep(0);
|
||||
|
||||
GuiSleep(50);
|
||||
|
||||
if(TTYQuit())
|
||||
Stop();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue