Gdb: #1 Added additional logs when kill close handle operation failed while breaking execution. #2 Gdb now supports displays up 200 entries of the stack to avoid ide not response when recursion is infinit. #3 Gdb now reports failure when breakpoint is not setted to TheIDE. #4 Remove infinit recursion in Ide::OnBreakpoint method.

git-svn-id: svn://ultimatepp.org/upp/trunk@12028 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2018-06-29 20:09:25 +00:00
parent bfecf1d5db
commit 08feb01681
3 changed files with 46 additions and 14 deletions

View file

@ -367,9 +367,17 @@ void Ide::OnBreakpoint(int i)
{
if(!editfile.IsEmpty() && !designer && debugger) {
String q = editor.GetBreakpoint(i);
if(q[0] != 0xe && !debugger->SetBreakpoint(editfile, i, q))
if(q[0] != 0xe && !debugger->SetBreakpoint(editfile, i, q)) {
auto event = editor.WhenBreakpoint;
editor.WhenBreakpoint = {};
if(!q.IsEmpty())
editor.SetBreakpoint(i, q);
editor.SetBreakpoint(i, Null);
else
editor.SetBreakpoint(i, "1");
editor.WhenBreakpoint = event;
}
}
}