mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 09:59:06 +02:00
Debugger, GDBMI Server: Apply remote timeout before connecting.
git-svn-id: trunk@61538 -
This commit is contained in:
parent
93cfa99541
commit
9f610af58d
@ -162,16 +162,16 @@ begin
|
||||
exit;
|
||||
end;
|
||||
|
||||
t := TGDBMIServerDebuggerProperties(DebuggerProperties).RemoteTimeout;
|
||||
if t >= 0 then
|
||||
ExecuteCommand(Format('set remotetimeout %d', [t]), R);
|
||||
|
||||
// TODO: Maybe should be done in CommandStart, But Filename, and Environment will be done before Start
|
||||
FSuccess := ExecuteCommand(Format('target remote %s:%s',
|
||||
[TGDBMIServerDebuggerProperties(DebuggerProperties).FDebugger_Remote_Hostname,
|
||||
TGDBMIServerDebuggerProperties(DebuggerProperties).Debugger_Remote_Port ]),
|
||||
R);
|
||||
FSuccess := FSuccess and (r.State <> dsError);
|
||||
|
||||
t := TGDBMIServerDebuggerProperties(DebuggerProperties).RemoteTimeout;
|
||||
if t >= 0 then
|
||||
ExecuteCommand(Format('set remotetimeout %d', [t]), R);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user