mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 07:49:25 +02:00
LazDebuggerFpLldb: fixed watch-eval for Mac-M2, if stackwindow is closed. (register PC for M2)
(cherry picked from commit c4483bf7f4
)
This commit is contained in:
parent
ca859f5b3e
commit
910afda1b3
@ -1546,6 +1546,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
|
||||
|
Loading…
Reference in New Issue
Block a user