summaryrefslogtreecommitdiff
path: root/devel/llvm37/files/lldb-patch-svn-247116
blob: 3f4c9743958203cad1eb9c68038088a7c9fbf776 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
------------------------------------------------------------------------
r247116 | sas | 2015-09-09 01:22:05 +0000 (Wed, 09 Sep 2015) | 11 lines

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>
------------------------------------------------------------------------
Index: scripts/utilsOsType.py
===================================================================
--- tools/lldb/scripts/utilsOsType.py	(revision 247115)
+++ tools/lldb/scripts/utilsOsType.py	(revision 247116)
@@ -31,6 +31,7 @@
                 "Darwin",
                 "FreeBSD",
                 "Linux", 
+                "NetBSD",
                 "Windows" ]
     class __metaclass__( type ):
 #++---------------------------------------------------------------------------
@@ -71,6 +72,8 @@
         eOSType = EnumOsType.FreeBSD
     elif (strOS.startswith("linux")):
         eOSType = EnumOsType.Linux
+    elif (strOS.startswith("netbsd")):
+        eOSType = EnumOsType.NetBSD
     elif strOS == "win32":
         eOSType = EnumOsType.Windows