mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 20:41:16 +02:00
remote debug: fix reading response. Issue #0026664
git-svn-id: trunk@47147 -
This commit is contained in:
parent
2006ddcda1
commit
1523492244
@ -2656,9 +2656,13 @@ begin
|
||||
if FTheDebugger.FAsyncModeEnabled and FGotStopped then begin
|
||||
// There should not be a "(gdb) ",
|
||||
// but some versions print it, as they run none async, after accepting "run &"
|
||||
S := FTheDebugger.ReadLine(50);
|
||||
if (S <> '(gdb) ') then continue; // since no command was sent, we can loop
|
||||
break;
|
||||
S := FTheDebugger.ReadLine(True, 50);
|
||||
if FTheDebugger.ReadLineTimedOut then break;
|
||||
if (S = '(gdb) ') then begin
|
||||
FTheDebugger.ReadLine(50); // read the extra "(gdb) "
|
||||
break;
|
||||
end;
|
||||
// since no command was sent, we can loop
|
||||
end;
|
||||
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user