mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-06 23:40:52 +01:00
Trying to fix Pause behaviour over RSP: Disable FIsPaused assert in ThreadReadState method. Call WaitForSignal after sending Break request. Call Sleep after waiting for WaitForSignal so that a queued request has time to get processed.
This commit is contained in:
parent
160c57451a
commit
e524997317
@ -284,7 +284,7 @@ end;
|
||||
|
||||
function TDbgAvrThread.ReadThreadState: boolean;
|
||||
begin
|
||||
assert(FIsPaused, 'TDbgRspThread.ReadThreadState: FIsPaused');
|
||||
// assert(FIsPaused, 'TDbgRspThread.ReadThreadState: FIsPaused');
|
||||
result := true;
|
||||
if FHasThreadState then
|
||||
exit;
|
||||
@ -776,10 +776,11 @@ begin
|
||||
repeat
|
||||
try
|
||||
FStatus := FConnection.WaitForSignal(s, initRegs); // TODO: Update registers cache
|
||||
sleep(1);
|
||||
except
|
||||
FStatus := 0;
|
||||
end;
|
||||
until FStatus <> 0; // should probably wait at lower level...
|
||||
until FStatus <> 0;
|
||||
|
||||
if FStatus <> 0 then
|
||||
begin
|
||||
@ -789,7 +790,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
result := true;
|
||||
result := FStatus <> 0;
|
||||
end;
|
||||
|
||||
function TDbgAvrProcess.InsertBreakInstructionCode(const ALocation: TDBGPtr;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user