mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 13:40:20 +02:00
FpDebug: fix :refcnt for fpc 3.3.1
This commit is contained in:
parent
ef8b5603be
commit
c398363932
@ -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