mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 01:19:29 +02:00
LazDebuggerFpLldb: fixed watch-eval for Mac-M2, if stackwindow is closed. (register PC for M2)
This commit is contained in:
parent
5afaa37764
commit
c4483bf7f4
@ -1554,6 +1554,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