]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/API/SBHostOS.h
Update LLDB snapshot to upstream r216948 (git 50f7fe44)
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / API / SBHostOS.h
1 //===-- SBHostOS.h ----------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLDB_SBHostOS_h_
11 #define LLDB_SBHostOS_h_
12
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBFileSpec.h"
15
16 namespace lldb {
17
18 class SBHostOS
19 {
20 public:
21
22     static lldb::SBFileSpec
23     GetProgramFileSpec ();
24     
25     static lldb::SBFileSpec
26     GetLLDBPythonPath ();
27
28     static lldb::SBFileSpec
29     GetLLDBPath (lldb::PathType path_type);
30
31     static void
32     ThreadCreated (const char *name);
33
34     static lldb::thread_t
35     ThreadCreate (const char *name,
36                   lldb::thread_func_t thread_function,
37                   void *thread_arg,
38                   lldb::SBError *err);
39
40     static bool
41     ThreadCancel (lldb::thread_t thread,
42                   lldb::SBError *err);
43
44     static bool
45     ThreadDetach (lldb::thread_t thread,
46                   lldb::SBError *err);
47     static bool
48     ThreadJoin (lldb::thread_t thread,
49                 lldb::thread_result_t *result,
50                 lldb::SBError *err);
51
52
53 private:
54
55 };
56
57
58 } // namespace lldb
59
60 #endif // LLDB_SBHostOS_h_