aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectPlatform.cpp
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-01-21 22:42:49 +0000
committerVince Harron <vharron@google.com>2015-01-21 22:42:49 +0000
commit1b5a74eea7fff1432dcb97a8107db6d13bee85ee (patch)
tree64e8ef041b6faaddb935ff8c5efcd078664bd7d0 /lldb/source/Commands/CommandObjectPlatform.cpp
parent229eb4ca5c0d955e59d4a53ae58afd0b2385a11d (diff)
downloadllvm-1b5a74eea7fff1432dcb97a8107db6d13bee85ee.zip
llvm-1b5a74eea7fff1432dcb97a8107db6d13bee85ee.tar.gz
llvm-1b5a74eea7fff1432dcb97a8107db6d13bee85ee.tar.bz2
This patch gets remote-linux platform able to run processes
Make sure the selected platform is always used Make sure that the host uses the connect://hostname to connect to both the lldb-platform and the lldb-gdbserver rather than what the platform reports as the hostname of the lldb-gdbserver Make sure that lldb-platform uses the IP address on it's connection back to the host instead of the hostname that the host sends to it when launching lldb-gdbserver with the remote host information Tested on OSX and Linux llvm-svn: 226712
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectPlatform.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp
index 7f840e4..29d8026 100644
--- a/lldb/source/Commands/CommandObjectPlatform.cpp
+++ b/lldb/source/Commands/CommandObjectPlatform.cpp
@@ -249,6 +249,8 @@ protected:
PlatformSP platform_sp (m_platform_options.CreatePlatformWithOptions (m_interpreter, ArchSpec(), select, error, platform_arch));
if (platform_sp)
{
+ m_interpreter.GetDebugger().GetPlatformList().SetSelectedPlatform(platform_sp);
+
platform_sp->GetStatus (result.GetOutputStream());
result.SetStatus (eReturnStatusSuccessFinishResult);
}