[Lldb-commits] [PATCH] D14876: Call Platform::SetHostPlatform in the NetBSD platform only on NetBSD
Kamil Rytarowski via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 20 10:30:33 PST 2015
krytarowski created this revision.
krytarowski added reviewers: clayborg, emaste.
krytarowski added subscribers: joerg, lldb-commits, sivachandra, tberghammer.
krytarowski set the repository for this revision to rL LLVM.
This should push forward integration of the NetBSD code with others.
This commit aims to address regression with LLDB tests (http://reviews.llvm.org/D14844).
Repository:
rL LLVM
http://reviews.llvm.org/D14876
Files:
source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
Index: source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
===================================================================
--- source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
+++ source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
@@ -94,10 +94,12 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14876.40796.patch
Type: text/x-patch
Size: 849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151120/d74b5e76/attachment.bin>
More information about the lldb-commits
mailing list