LazDebuggerFpLldb: fixed watch-eval for Mac-M2, if stackwindow is closed. (register PC for M2)

This commit is contained in:
Martin 2024-01-21 00:31:18 +01:00
parent 5afaa37764
commit c4483bf7f4

View File

@ -1554,6 +1554,9 @@ begin
r := Registers.CurrentRegistersList[AThreadId, AStackFrame];
if (r <> nil) and (r.DataValidity = ddsValid) then begin
try
if FDwarfInfo.TargetInfo.machineType in [mtARM, mtARM64] then
v := r.EntriesByName['PC'].ValueObjFormat[rdDefault].Value[rdDefault]
else
if TargetWidth = 64 then
v := r.EntriesByName['RIP'].ValueObjFormat[rdDefault].Value[rdDefault]
else