Gdbmi-SSH-Debugger: recognize #10 as line-end, even if different from local line-end. Issue #0021834

git-svn-id: trunk@63748 -
This commit is contained in:
martin 2020-08-15 18:15:15 +00:00
parent 4c43d00d8f
commit 20305fab48

View File

@ -37,7 +37,7 @@ unit SSHGDBMIDebugger;
interface
uses
Classes, SysUtils,
Classes, SysUtils, Types,
// LCL
Dialogs, Controls, Graphics,
// LazUtils
@ -340,7 +340,15 @@ function TSSHGDBMIDebugger.CreateDebugProcess(const AOptions: String): Boolean;
var
p: TSSHGDBMIDebuggerProperties;
SshOpt: String;
le: TStringDynArray;
begin
if LineEnding <> #10 then begin
SetLength(le, 2);
le[0] := LineEnding;
le[1] := #10;
SetLineEnds(le);
end;
p := TSSHGDBMIDebuggerProperties(GetProperties);
SshOpt := p.FSSHStartupOptions;
if p.FAppendGDBtoSSHopt then begin