summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2015-09-09 01:22:05 +0000
committerStephane Sezer <sas@cd80.net>2015-09-09 01:22:05 +0000
commit9c991153674a30af5b74b0f1e5168d54a44967b0 (patch)
tree7c60a3cd7a0b42843f3c68f731bd354442e1ec3a /lldb/scripts
parent851f23db945adb579a977ee03056e3bd44df3bec (diff)
downloadbcm5719-llvm-9c991153674a30af5b74b0f1e5168d54a44967b0.tar.gz
bcm5719-llvm-9c991153674a30af5b74b0f1e5168d54a44967b0.zip
Teach utilsOsType about NetBSD
Summary: NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. Reviewers: joerg, sas Subscribers: sas, emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D12615 Change by Kamil Rytarowski <n54@gmx.com> llvm-svn: 247116
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/utilsOsType.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/utilsOsType.py b/lldb/scripts/utilsOsType.py
index bbfd56f6357..79c904822ec 100644
--- a/lldb/scripts/utilsOsType.py
+++ b/lldb/scripts/utilsOsType.py
@@ -31,6 +31,7 @@ class EnumOsType( object ):
"Darwin",
"FreeBSD",
"Linux",
+ "NetBSD",
"Windows" ]
class __metaclass__( type ):
#++---------------------------------------------------------------------------
@@ -71,6 +72,8 @@ def determine_os_type():
eOSType = EnumOsType.FreeBSD
elif (strOS.startswith("linux")):
eOSType = EnumOsType.Linux
+ elif (strOS.startswith("netbsd")):
+ eOSType = EnumOsType.NetBSD
elif strOS == "win32":
eOSType = EnumOsType.Windows
OpenPOWER on IntegriCloud