mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 06:49:27 +02:00
FpDebug: Fix crash, due to memmanager not initialized
git-svn-id: trunk@58503 -
This commit is contained in:
parent
90a0dd1ef7
commit
0e9f870052
@ -604,6 +604,7 @@ begin
|
||||
AContext := AController.CurrentProcess.DbgInfo.FindContext(CurThreadId, e.Index, Reg.NumValue);
|
||||
if AContext <> nil then begin
|
||||
AContext.MemManager.DefaultContext := AContext;
|
||||
FPrettyPrinter.MemManager := AContext.MemManager;
|
||||
FPrettyPrinter.AddressSize := AContext.SizeOfAddress;
|
||||
|
||||
for i := 0 to ProcVal.MemberCount - 1 do begin
|
||||
@ -726,6 +727,7 @@ begin
|
||||
AContext.ReleaseReference;
|
||||
exit;
|
||||
end;
|
||||
FPrettyPrinter.MemManager := AContext.MemManager;
|
||||
FPrettyPrinter.AddressSize := AContext.SizeOfAddress;
|
||||
|
||||
ALocals.Clear;
|
||||
|
Loading…
Reference in New Issue
Block a user