mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 18:08:35 +02:00
FpDebug: fix :refcnt for fpc 3.3.1
(cherry picked from commit c398363932
)
This commit is contained in:
parent
54ffa1df0e
commit
45e39252e1
@ -1886,8 +1886,15 @@ begin
|
||||
if not IsReadableLoc(Addr) then
|
||||
exit;
|
||||
|
||||
Addr:= Addr - (AddressSize * 2);
|
||||
Result := Context.ReadSignedInt(Addr, SizeVal(AddressSize), ARefCount);
|
||||
if TFpDwarfFreePascalSymbolClassMap(TypeInfo.CompilationUnit.DwarfSymbolClassMap).FCompilerVersion >= $030301
|
||||
then begin
|
||||
Addr:= Addr - AddressSize - 4;
|
||||
Result := Context.ReadSignedInt(Addr, SizeVal(4), ARefCount);
|
||||
end
|
||||
else begin
|
||||
Addr:= Addr - (AddressSize * 2);
|
||||
Result := Context.ReadSignedInt(Addr, SizeVal(AddressSize), ARefCount);
|
||||
end;
|
||||
end;
|
||||
|
||||
function TFpValueDwarfV3FreePascalString.ObtainDynamicCodePage(Addr: TFpDbgMemLocation; out
|
||||
|
Loading…
Reference in New Issue
Block a user