mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 18:58:24 +02:00
LazDebuggerFp: fixed a nil deref, DefaultContext needs CurrentThread
(cherry picked from commit 217459a76f
)
This commit is contained in:
parent
340f6f1502
commit
626125debf
@ -2422,10 +2422,11 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
FDebugger.FDbgController.DefaultContext; // Make sure it is avail and cached / so it can be called outside the thread
|
|
||||||
|
|
||||||
if CurrentThread = nil then
|
if CurrentThread = nil then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
FDebugger.FDbgController.DefaultContext; // Make sure it is avail and cached / so it can be called outside the thread
|
||||||
if (FState = esSteppingFpcSpecialHandler) and AnIsFinished and
|
if (FState = esSteppingFpcSpecialHandler) and AnIsFinished and
|
||||||
(ACurCommand is TDbgControllerStepThroughFpcSpecialHandler)
|
(ACurCommand is TDbgControllerStepThroughFpcSpecialHandler)
|
||||||
then begin
|
then begin
|
||||||
|
Loading…
Reference in New Issue
Block a user