21#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
32#include "llvm/Support/TargetSelect.h"
39 HostInfo::SharedLibraryDirectoryHelper *helper)
40 : m_shlib_dir_helper(helper) {}
46 const char *disable_crash_dialog_var = getenv(
"LLDB_DISABLE_CRASH_DIALOG");
47 if (disable_crash_dialog_var &&
48 llvm::StringRef(disable_crash_dialog_var).equals_insensitive(
"true")) {
55 ::SetErrorMode(GetErrorMode() | SEM_FAILCRITICALERRORS |
56 SEM_NOGPFAULTERRORBOX);
58 _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
59 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
60 _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
61 _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
62 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
63 _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
81#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
89 return llvm::Error::success();
100 HostInfo::Terminate();
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_SCOPED_TIMER()
static void Initialize(T &&...t)
static void DisableAllLogChannels()
static llvm::Error Initialize()
~SystemInitializerCommon() override
SystemInitializerCommon(HostInfo::SharedLibraryDirectoryHelper *helper)
HostInfo::SharedLibraryDirectoryHelper * m_shlib_dir_helper
llvm::Error Initialize() override
void Terminate() override
A class that represents a running process on the host machine.
void InitializeLldbChannel()