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