mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 10:00:34 +02:00
FpDebug: Fix "set of (10..20)" (subrange)
git-svn-id: trunk@62011 -
This commit is contained in:
parent
bbc36a7e52
commit
f96c6b9f66
@ -2329,7 +2329,10 @@ begin
|
||||
TFpValueDwarfBase(Result).Context := Context;
|
||||
end
|
||||
else begin
|
||||
TypeInfo.GetValueLowBound(Self, lb);
|
||||
// TODO: value object for the subrange
|
||||
// TODO: cache the result
|
||||
if not t.GetValueLowBound(nil, lb) then
|
||||
lb := 0;
|
||||
if (FNumValue = nil) or (FNumValue.RefCount > 1) then begin // refcount 1 by FTypedNumValue
|
||||
FNumValue := TFpValueDwarfConstNumber.Create(FMemberMap[AIndex] + lb, t.Kind = skInteger);
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user