aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectPlatform.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-09-19 20:11:50 +0000
committerGreg Clayton <gclayton@apple.com>2014-09-19 20:11:50 +0000
commit615eb7e6097c035e0b64992798fda7c939e93303 (patch)
tree5ce9aa21d619eff5b07fba9b6f14cadbdb81b333 /lldb/source/Commands/CommandObjectPlatform.cpp
parent4f1561a5dd875711fcb5018de791bf953d25c817 (diff)
downloadllvm-615eb7e6097c035e0b64992798fda7c939e93303.zip
llvm-615eb7e6097c035e0b64992798fda7c939e93303.tar.gz
llvm-615eb7e6097c035e0b64992798fda7c939e93303.tar.bz2
Test suite runs better again after recent fixes that would select a platform if a "file a.out" auto selected a different platform than the selected one.
Changes include: - fix it so you can select the "host" platform using "platform select host" - change all callbacks that create platforms to returns shared pointers - fix TestImageListMultiArchitecture.py to restore the "host" platform by running "platform select host" - Add a new "PlatformSP Platform::Find(const ConstString &name)" method to get a cached platform - cache platforms that are created and re-use them instead of always creating a new one llvm-svn: 218145
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectPlatform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp
index 9998dbd..45355a0d 100644
--- a/lldb/source/Commands/CommandObjectPlatform.cpp
+++ b/lldb/source/Commands/CommandObjectPlatform.cpp
@@ -302,7 +302,7 @@ protected:
Stream &ostrm = result.GetOutputStream();
ostrm.Printf("Available platforms:\n");
- PlatformSP host_platform_sp (Platform::GetDefaultPlatform());
+ PlatformSP host_platform_sp (Platform::GetHostPlatform());
ostrm.Printf ("%s: %s\n",
host_platform_sp->GetPluginName().GetCString(),
host_platform_sp->GetDescription());