mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:59:31 +02:00
FpDebug: Fixed IDE hang on linux. ExecuteInDebugThread can be called recursive (e.g., by MemReader)
git-svn-id: trunk@62491 -
This commit is contained in:
parent
5301fa49cb
commit
6cc8e56bdc
@ -2783,6 +2783,11 @@ end;
|
||||
|
||||
procedure TFpDebugDebugger.ExecuteInDebugThread(AMethod: TFpDbgAsyncMethod);
|
||||
begin
|
||||
if ThreadID = FFpDebugThread.ThreadID then begin
|
||||
AMethod();
|
||||
exit;
|
||||
end;
|
||||
|
||||
assert(not assigned(FFpDebugThread.AsyncMethod));
|
||||
FFpDebugThread.AsyncMethod:=AMethod;
|
||||
RTLeventSetEvent(FFpDebugThread.StartDebugLoopEvent);
|
||||
|
Loading…
Reference in New Issue
Block a user