FpDebug: Fix DW_FORM_strp for Dwarf3's 64Bit-Dwarf info

git-svn-id: trunk@60086 -
This commit is contained in:
martin 2019-01-14 23:13:21 +00:00
parent 9a9d87e661
commit ca3d4a29d7

View File

@ -4282,7 +4282,10 @@ begin
AValue := PChar(AAttribute);
end;
DW_FORM_strp: begin
AValue := pchar(PtrUInt(FDebugFile^.Sections[dsStr].RawData)+PDWord(AAttribute)^);
if IsDwarf64 then
AValue := pchar(PtrUInt(FDebugFile^.Sections[dsStr].RawData)+PQWord(AAttribute)^)
else
AValue := pchar(PtrUInt(FDebugFile^.Sections[dsStr].RawData)+PDWord(AAttribute)^);
end;
else
Result := False;
@ -4335,7 +4338,10 @@ begin
AValue := PChar(AAttribute);
end;
DW_FORM_strp: begin
AValue := PChar(PtrUInt(FDebugFile^.Sections[dsStr].RawData)+PDWord(AAttribute)^);
if IsDwarf64 then
AValue := pchar(PtrUInt(FDebugFile^.Sections[dsStr].RawData)+PQWord(AAttribute)^)
else
AValue := pchar(PtrUInt(FDebugFile^.Sections[dsStr].RawData)+PDWord(AAttribute)^);
end;
else
Result := False;