mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:59:06 +02:00
FpDebugger (pure): Avoid usage of TThread.Queue, because it is not available in fpc 2.6.4
git-svn-id: trunk@45879 -
This commit is contained in:
parent
8d3f97d41e
commit
d349c421e3
@ -89,7 +89,7 @@ type
|
|||||||
function GetDebugInfo: TDbgInfo;
|
function GetDebugInfo: TDbgInfo;
|
||||||
procedure DoWatchFreed(Sender: TObject);
|
procedure DoWatchFreed(Sender: TObject);
|
||||||
procedure ProcessASyncWatches(Data: PtrInt);
|
procedure ProcessASyncWatches(Data: PtrInt);
|
||||||
procedure DoLog;
|
procedure DoLog(Data: PtrInt);
|
||||||
protected
|
protected
|
||||||
procedure ScheduleWatchValueEval(AWatchValue: TWatchValue);
|
procedure ScheduleWatchValueEval(AWatchValue: TWatchValue);
|
||||||
function EvaluateExpression(AWatchValue: TWatchValue;
|
function EvaluateExpression(AWatchValue: TWatchValue;
|
||||||
@ -1086,7 +1086,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TFpDebugDebugger.DoLog;
|
procedure TFpDebugDebugger.DoLog(Data: PtrInt);
|
||||||
var
|
var
|
||||||
AMessage: TFpDbgLogMessage;
|
AMessage: TFpDbgLogMessage;
|
||||||
begin
|
begin
|
||||||
@ -1368,7 +1368,7 @@ begin
|
|||||||
finally
|
finally
|
||||||
LeaveCriticalsection(FLogCritSection);
|
LeaveCriticalsection(FLogCritSection);
|
||||||
end;
|
end;
|
||||||
TThread.Queue(nil, @DoLog);
|
Application.QueueAsyncCall(@DoLog, 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TFpDebugDebugger.ExecuteInDebugThread(AMethod: TFpDbgAsyncMethod);
|
procedure TFpDebugDebugger.ExecuteInDebugThread(AMethod: TFpDbgAsyncMethod);
|
||||||
|
Loading…
Reference in New Issue
Block a user