mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 21:09:30 +02:00
debugger: fixed compilation with fpc 2.3.1. as suggested by Marc (bug #10970)
git-svn-id: trunk@14459 -
This commit is contained in:
parent
ed75bbfbc2
commit
ae6fd378b3
@ -372,6 +372,8 @@ begin
|
||||
end;
|
||||
|
||||
procedure TCmdLineDebugger.SendCmdLn(const ACommand: String); overload;
|
||||
var
|
||||
LE: string[2];
|
||||
begin
|
||||
//writeln('TCmdLineDebugger.SendCmdLn "',ACommand,'"');
|
||||
if DebugProcessRunning
|
||||
@ -379,11 +381,10 @@ begin
|
||||
DoDbgOutput('<' + ACommand + '>');
|
||||
if ACommand <> ''
|
||||
then FDbgProcess.Input.Write(ACommand[1], Length(ACommand));
|
||||
{$ifdef MSWindows}
|
||||
// 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(LineEnding[1], Length(LineEnding));
|
||||
{$else}
|
||||
FDbgProcess.Input.Write(LineEnding, Length(LineEnding));
|
||||
{$endif}
|
||||
end
|
||||
else begin
|
||||
DebugLn('[TCmdLineDebugger.SendCmdLn] Unable to send <', ACommand, '>. No process running.');
|
||||
|
Loading…
Reference in New Issue
Block a user