mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 15:20:29 +02:00
FpDebug: Fix DW_FORM_strp for Dwarf3's 64Bit-Dwarf info
git-svn-id: trunk@60086 -
This commit is contained in:
parent
9a9d87e661
commit
ca3d4a29d7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user