mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
LazDebuggerFpLldb: correctly initialize pretty-printer
git-svn-id: trunk@60084 -
This commit is contained in:
parent
95f4d65126
commit
ea6abfeb17
@ -1096,7 +1096,10 @@ begin
|
||||
FDwarfInfo := Loader.DwarfInfo;
|
||||
Loader.Free;
|
||||
|
||||
FPrettyPrinter := TFpPascalPrettyPrinter.Create(SizeOf(Pointer));
|
||||
if FDwarfInfo.Image64Bit then
|
||||
FPrettyPrinter := TFpPascalPrettyPrinter.Create(8)
|
||||
else
|
||||
FPrettyPrinter := TFpPascalPrettyPrinter.Create(4);
|
||||
exit;
|
||||
end;
|
||||
|
||||
@ -1120,7 +1123,11 @@ begin
|
||||
FDwarfInfo.MemManager := FMemManager;
|
||||
FDwarfInfo.LoadCompilationUnits;
|
||||
|
||||
FPrettyPrinter := TFpPascalPrettyPrinter.Create(SizeOf(Pointer));
|
||||
if FDwarfInfo.Image64Bit then
|
||||
FPrettyPrinter := TFpPascalPrettyPrinter.Create(8)
|
||||
else
|
||||
FPrettyPrinter := TFpPascalPrettyPrinter.Create(4);
|
||||
//FPrettyPrinter := TFpPascalPrettyPrinter.Create(SizeOf(Pointer));
|
||||
end;
|
||||
|
||||
procedure TFpLldbDebugger.UnLoadDwarf;
|
||||
|
Loading…
Reference in New Issue
Block a user