mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 15:00:24 +02:00
FpDebug: fix context (crash) during stack eval / currently unused code
git-svn-id: trunk@61805 -
This commit is contained in:
parent
4db4bc458b
commit
9fedf06c5f
@ -755,6 +755,7 @@ begin
|
||||
AContext := FThread.Process.DbgInfo.FindContext(FThread.ID, Index, InstrPointerValue);
|
||||
if AContext <> nil then begin
|
||||
AContext.MemManager.DefaultContext := AContext;
|
||||
TFpValueDwarf(ProcVal).Context := AContext;
|
||||
APrettyPrinter:=TFpPascalPrettyPrinter.Create(DBGPTRSIZE[FThread.Process.Mode]);
|
||||
try
|
||||
for i := 0 to ProcVal.MemberCount - 1 do begin
|
||||
@ -768,6 +769,8 @@ begin
|
||||
finally
|
||||
APrettyPrinter.Free;
|
||||
end;
|
||||
TFpValueDwarf(ProcVal).Context := nil;
|
||||
AContext.ReleaseReference;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user