LazDebuggerFp: fix "variant" converter for dwarf-2

(cherry picked from commit ac0faad39a)
This commit is contained in:
Martin 2024-04-21 11:30:04 +02:00
parent 9b2a8b054a
commit e740c08173

View File

@ -227,8 +227,14 @@ begin
try
i := vtype.AsInteger;
case i of
0: AnResData.CreatePrePrinted('<Empty>');
1: AnResData.CreatePrePrinted('<Null>');
0: begin
AnResData.CreatePrePrinted('<Empty>');
exit;
end;
1: begin
AnResData.CreatePrePrinted('<Null>');
exit;
end;
2: Result := ASourceValue.MemberByName['VSMALLINT'];
3: Result := ASourceValue.MemberByName['VINTEGER'];
4: Result := ASourceValue.MemberByName['VSINGLE'];