mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:39:15 +02:00
Debugger, Gdbmi: set register validity if numeric value of different display format is requested. Issue #41578
(cherry picked from commit 47c395bf03
)
This commit is contained in:
parent
1cb679ef87
commit
8df5cc6966
@ -2043,7 +2043,7 @@ function TGDBMIDebuggerCommandRegisterUpdate.DoExecute: Boolean;
|
||||
RegValObj.SetAsNum(Num, FTheDebugger.TargetPtrSize);
|
||||
RegValObj.AddFormats([rdBinary, rdDecimal, rdOctal, rdHex]);
|
||||
end;
|
||||
if AFormat = RegVal.DisplayFormat then
|
||||
if (AFormat = RegVal.DisplayFormat) or RegVal.HasValue {Has current required disp-format} then
|
||||
RegVal.DataValidity := ddsValid;
|
||||
end;
|
||||
FreeAndNil(List);
|
||||
|
Loading…
Reference in New Issue
Block a user