FpDebug: fix reading string constant, broken in r63193 #71fbdbd144 "support for codepages in Dwarf-3"

git-svn-id: trunk@63392 -
This commit is contained in:
martin 2020-06-18 18:08:00 +00:00
parent f59a294a01
commit 4570e9dea5

View File

@ -1327,6 +1327,8 @@ var
begin
// Only call this function for non-empty strings!
Result := False;
if not IsTargetNotNil(Addr) then
exit;
// Only AnsiStrings in fpc 3.0.0 and higher have a dynamic codepage.
if (TypeInfo.Kind = skString) and (TFpDwarfFreePascalSymbolClassMapDwarf3(TypeInfo.CompilationUnit.DwarfSymbolClassMap).FCompilerVersion >= $030000) then begin