From c01797e7b0dbfe7c8ea9661ac0b9ca46e25c7ccc Mon Sep 17 00:00:00 2001 From: vincents Date: Sat, 8 Mar 2008 12:14:40 +0000 Subject: [PATCH] debugger: fixed passing LineEnding to the debugger (bug #10975) git-svn-id: trunk@14466 - --- debugger/cmdlinedebugger.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debugger/cmdlinedebugger.pp b/debugger/cmdlinedebugger.pp index 1c5f0693a7..f3c1758c44 100644 --- a/debugger/cmdlinedebugger.pp +++ b/debugger/cmdlinedebugger.pp @@ -384,7 +384,7 @@ begin // store LineEnding in local variable, so the same statement can be used // for windows and *nix (1 or 2 character line ending) LE := LineEnding; - FDbgProcess.Input.Write(LE, Length(LE)); + FDbgProcess.Input.Write(LE[1], Length(LE)); end else begin DebugLn('[TCmdLineDebugger.SendCmdLn] Unable to send <', ACommand, '>. No process running.');