[Lldb-commits] [lldb] r253699 - Call Platform::SetHostPlatform in the NetBSD platform only on NetBSD

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 20 11:32:58 PST 2015


Author: emaste
Date: Fri Nov 20 13:32:58 2015
New Revision: 253699

URL: http://llvm.org/viewvc/llvm-project?rev=253699&view=rev
Log:
Call Platform::SetHostPlatform in the NetBSD platform only on NetBSD

Patch by Kamil Rytarowski

Differential Revision: http://reviews.llvm.org/D14876

Modified:
    lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp

Modified: lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp?rev=253699&r1=253698&r2=253699&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp Fri Nov 20 13:32:58 2015
@@ -94,10 +94,12 @@ PlatformNetBSD::Initialize ()
 
     if (g_initialize_count++ == 0)
     {
+#if defined(__NetBSD__)
         // Force a host flag to true for the default platform object.
         PlatformSP default_platform_sp (new PlatformNetBSD(true));
         default_platform_sp->SetSystemArchitecture(HostInfo::GetArchitecture());
         Platform::SetHostPlatform (default_platform_sp);
+#endif
         PluginManager::RegisterPlugin(PlatformNetBSD::GetPluginNameStatic(false),
                                       PlatformNetBSD::GetDescriptionStatic(false),
                                       PlatformNetBSD::CreateInstance);




More information about the lldb-commits mailing list