Debugger, Gdbmi: set register validity if numeric value of different display format is requested. Issue #41578

This commit is contained in:
Martin 2025-04-09 15:41:46 +02:00
parent b42caeb972
commit 47c395bf03

View File

@ -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);