mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 14:50:32 +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);
|
procedure TFpDebugDebugger.ExecuteInDebugThread(AMethod: TFpDbgAsyncMethod);
|
||||||
begin
|
begin
|
||||||
|
if ThreadID = FFpDebugThread.ThreadID then begin
|
||||||
|
AMethod();
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
assert(not assigned(FFpDebugThread.AsyncMethod));
|
assert(not assigned(FFpDebugThread.AsyncMethod));
|
||||||
FFpDebugThread.AsyncMethod:=AMethod;
|
FFpDebugThread.AsyncMethod:=AMethod;
|
||||||
RTLeventSetEvent(FFpDebugThread.StartDebugLoopEvent);
|
RTLeventSetEvent(FFpDebugThread.StartDebugLoopEvent);
|
||||||
|
Loading…
Reference in New Issue
Block a user