mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 19:20:38 +02:00
GdbmiDebugger: don't try to evaluate non-existing registers from cache (if target CPU was changed)
This commit is contained in:
parent
8ec704c935
commit
0f2c5ea302
@ -2082,6 +2082,9 @@ begin
|
|||||||
FreeAndNil(List);
|
FreeAndNil(List);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
for i := 0 to Length(FGDBMIRegSupplier.FRegNamesCache) - 1 do
|
||||||
|
if FRegisters.EntriesByName[FGDBMIRegSupplier.FRegNamesCache[i]].DataValidity = ddsUnknown then
|
||||||
|
FRegisters.EntriesByName[FGDBMIRegSupplier.FRegNamesCache[i]].DataValidity := ddsRequested;
|
||||||
|
|
||||||
if FRegisters.DataValidity = ddsRequested then begin
|
if FRegisters.DataValidity = ddsRequested then begin
|
||||||
ChangedRegList := nil;
|
ChangedRegList := nil;
|
||||||
@ -2111,7 +2114,7 @@ begin
|
|||||||
|
|
||||||
// check for individual updates / displayformat
|
// check for individual updates / displayformat
|
||||||
for i := 0 to FRegisters.Count - 1 do begin
|
for i := 0 to FRegisters.Count - 1 do begin
|
||||||
if not FRegisters[i].HasValue then
|
if (not FRegisters[i].HasValue) and (FRegisters[i].DataValidity = ddsRequested) then
|
||||||
UpdateFormat(FRegisters[i].DisplayFormat);
|
UpdateFormat(FRegisters[i].DisplayFormat);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user