2011-07-20 06:41:47 +08:00
|
|
|
//===-- SWIG Interface for SBHostOS -----------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
namespace lldb {
|
|
|
|
|
|
|
|
class SBHostOS
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
static lldb::SBFileSpec
|
|
|
|
GetProgramFileSpec ();
|
|
|
|
|
2014-07-31 01:38:47 +08:00
|
|
|
static lldb::SBFileSpec
|
|
|
|
GetLLDBPythonPath ();
|
|
|
|
|
|
|
|
static lldb::SBFileSpec
|
|
|
|
GetLLDBPath (lldb::PathType path_type);
|
|
|
|
|
2016-02-19 08:05:17 +08:00
|
|
|
static lldb::SBFileSpec
|
|
|
|
GetUserHomeDirectory ();
|
|
|
|
|
2011-07-20 06:41:47 +08:00
|
|
|
static void
|
|
|
|
ThreadCreated (const char *name);
|
|
|
|
|
|
|
|
static lldb::thread_t
|
|
|
|
ThreadCreate (const char *name,
|
2014-07-02 01:57:19 +08:00
|
|
|
lldb::thread_func_t,
|
2011-07-20 06:41:47 +08:00
|
|
|
void *thread_arg,
|
|
|
|
lldb::SBError *err);
|
|
|
|
|
|
|
|
static bool
|
|
|
|
ThreadCancel (lldb::thread_t thread,
|
|
|
|
lldb::SBError *err);
|
|
|
|
|
|
|
|
static bool
|
|
|
|
ThreadDetach (lldb::thread_t thread,
|
|
|
|
lldb::SBError *err);
|
|
|
|
static bool
|
|
|
|
ThreadJoin (lldb::thread_t thread,
|
2014-07-02 01:57:19 +08:00
|
|
|
lldb::thread_result_t *result,
|
2011-07-20 06:41:47 +08:00
|
|
|
lldb::SBError *err);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lldb
|