mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 21:39:23 +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];
|
r := Registers.CurrentRegistersList[AThreadId, AStackFrame];
|
||||||
if (r <> nil) and (r.DataValidity = ddsValid) then begin
|
if (r <> nil) and (r.DataValidity = ddsValid) then begin
|
||||||
try
|
try
|
||||||
|
if FDwarfInfo.TargetInfo.machineType in [mtARM, mtARM64] then
|
||||||
|
v := r.EntriesByName['PC'].ValueObjFormat[rdDefault].Value[rdDefault]
|
||||||
|
else
|
||||||
if TargetWidth = 64 then
|
if TargetWidth = 64 then
|
||||||
v := r.EntriesByName['RIP'].ValueObjFormat[rdDefault].Value[rdDefault]
|
v := r.EntriesByName['RIP'].ValueObjFormat[rdDefault].Value[rdDefault]
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user