diff options
author | Greg Clayton <gclayton@apple.com> | 2014-09-19 20:11:50 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-09-19 20:11:50 +0000 |
commit | 615eb7e6097c035e0b64992798fda7c939e93303 (patch) | |
tree | 5ce9aa21d619eff5b07fba9b6f14cadbdb81b333 /lldb/source/Core | |
parent | 4f1561a5dd875711fcb5018de791bf953d25c817 (diff) | |
download | bcm5719-llvm-615eb7e6097c035e0b64992798fda7c939e93303.tar.gz bcm5719-llvm-615eb7e6097c035e0b64992798fda7c939e93303.zip |
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/Core')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 3274b3c0023..69fae11dfbd 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -645,7 +645,7 @@ Debugger::Debugger(lldb::LogOutputCallback log_callback, void *baton) : m_log_callback_stream_sp.reset (new StreamCallback (log_callback, baton)); m_command_interpreter_ap->Initialize (); // Always add our default platform to the platform list - PlatformSP default_platform_sp (Platform::GetDefaultPlatform()); + PlatformSP default_platform_sp (Platform::GetHostPlatform()); assert (default_platform_sp.get()); m_platform_list.Append (default_platform_sp, true); |