From 9c991153674a30af5b74b0f1e5168d54a44967b0 Mon Sep 17 00:00:00 2001 From: Stephane Sezer Date: Wed, 9 Sep 2015 01:22:05 +0000 Subject: [PATCH] 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 llvm-svn: 247116 --- lldb/scripts/utilsOsType.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/scripts/utilsOsType.py b/lldb/scripts/utilsOsType.py index bbfd56f63579..79c904822eca 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