LLDB mainline
SBHostOS.h
Go to the documentation of this file.
1//===-- SBHostOS.h ----------------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_API_SBHOSTOS_H
10#define LLDB_API_SBHOSTOS_H
11
12#include "lldb/API/SBDefines.h"
13#include "lldb/API/SBFileSpec.h"
14
15namespace lldb {
16
18public:
20
21 LLDB_DEPRECATED_FIXME("Use GetScriptPath instead.", "GetScriptPath()")
23
25
27
29
30 LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
31 "not portable, and is difficult to use from Python.")
32 static void ThreadCreated(const char *name);
33
34 LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
35 "not portable, and is difficult to use from Python.")
36 static lldb::thread_t ThreadCreate(const char *name,
37 lldb::thread_func_t thread_function,
38 void *thread_arg, lldb::SBError *err);
39
40 LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
41 "not portable, and is difficult to use from Python.")
42 static bool ThreadCancel(lldb::thread_t thread, lldb::SBError *err);
43
44 LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
45 "not portable, and is difficult to use from Python.")
46 static bool ThreadDetach(lldb::thread_t thread, lldb::SBError *err);
47
48 LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
49 "not portable, and is difficult to use from Python.")
50 static bool ThreadJoin(lldb::thread_t thread, lldb::thread_result_t *result,
51 lldb::SBError *err);
52
53private:
54};
55
56} // namespace lldb
57
58#endif // LLDB_API_SBHOSTOS_H
#define LLDB_API
Definition SBDefines.h:28
#define LLDB_DEPRECATED_FIXME(MSG, FIX)
Definition SBDefines.h:39
static lldb::SBFileSpec GetUserHomeDirectory()
Definition SBHostOS.cpp:93
static lldb::SBFileSpec GetProgramFileSpec()
Definition SBHostOS.cpp:30
static lldb::SBFileSpec GetLLDBPythonPath()
Definition SBHostOS.cpp:38
static lldb::SBFileSpec GetScriptPath(lldb::ScriptLanguage language)
Definition SBHostOS.cpp:44
LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, " "not portable, and is difficult to use from Python.") static void ThreadCreated(const char *name)
static lldb::SBFileSpec GetLLDBPath(lldb::PathType path_type)
Definition SBHostOS.cpp:53
ScriptLanguage
Script interpreter types.
void * thread_result_t
Definition lldb-types.h:62
PathType
Used with SBHostOS::GetLLDBPath (lldb::PathType) to find files that are related to LLDB on the curren...
pthread_t thread_t
Definition lldb-types.h:58
void *(* thread_func_t)(void *)
Definition lldb-types.h:63