mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 20:49:30 +02:00
Debugger: fixed range check in WatchDisplayFormat
This commit is contained in:
parent
68174a162e
commit
d109bb3725
@ -464,7 +464,8 @@ begin
|
||||
|
||||
if (Resolved.StructAddrFormat <> vdfStructAddressOff) or (AResValue.FieldCount = 0)
|
||||
then begin
|
||||
Result := PrintNumber(AResValue.DataAddress, AResValue.DataAddress, FTargetAddressSize, Resolved);
|
||||
// TODO: for 32 bit target, sign extend the 2nd argument
|
||||
Result := PrintNumber(AResValue.DataAddress, Int64(AResValue.DataAddress), FTargetAddressSize, Resolved);
|
||||
if (Resolved.PointerFormat = vdfPointerTypedAddress) and (tn <> '') then
|
||||
Result := tn + '(' + Result + ')';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user