[Lldb-commits] [lldb] r195483 - Only use a PTY master/slave when launching for local processes.
Greg Clayton
gclayton at apple.com
Fri Nov 22 10:47:25 PST 2013
Author: gclayton
Date: Fri Nov 22 12:47:24 2013
New Revision: 195483
URL: http://llvm.org/viewvc/llvm-project?rev=195483&view=rev
Log:
Only use a PTY master/slave when launching for local processes.
Modified:
lldb/trunk/source/Commands/CommandObjectProcess.cpp
Modified: lldb/trunk/source/Commands/CommandObjectProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectProcess.cpp?rev=195483&r1=195482&r2=195483&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectProcess.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectProcess.cpp Fri Nov 22 12:47:24 2013
@@ -251,9 +251,11 @@ protected:
// then you'll pick up that incorrect value.
bool synchronous_execution = m_interpreter.GetSynchronous ();
+ PlatformSP platform_sp (target->GetPlatform());
+
// Finalize the file actions, and if none were given, default to opening
// up a pseudo terminal
- const bool default_to_use_pty = true;
+ const bool default_to_use_pty = platform_sp ? platform_sp->IsHost() : false;
m_options.launch_info.FinalizeFileActions (target, default_to_use_pty);
if (state == eStateConnected)
@@ -267,8 +269,6 @@ protected:
if (!m_options.launch_info.GetArchitecture().IsValid())
m_options.launch_info.GetArchitecture() = target->GetArchitecture();
-
- PlatformSP platform_sp (target->GetPlatform());
if (platform_sp && platform_sp->CanDebugProcess ())
{
More information about the lldb-commits
mailing list