20 #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
30 #include "llvm/Support/TargetSelect.h"
38 HostInfo::SharedLibraryDirectoryHelper *helper)
39 : m_shlib_dir_helper(helper) {}
54 llvm::vfs::getRealFileSystem(),
fp.GetFileCollector()));
56 fp.RecordInterestingDirectory(
58 fp.RecordInterestingDirectory(
61 return llvm::Error::success();
65 return llvm::Error::success();
70 const char *disable_crash_dialog_var = getenv(
"LLDB_DISABLE_CRASH_DIALOG");
71 if (disable_crash_dialog_var &&
72 llvm::StringRef(disable_crash_dialog_var).equals_insensitive(
"true")) {
79 ::SetErrorMode(GetErrorMode() | SEM_FAILCRITICALERRORS |
80 SEM_NOGPFAULTERRORBOX);
82 _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
83 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
84 _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
85 _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
86 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
87 _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
93 if (!Reproducer::Initialized()) {
94 if (
auto e = Reproducer::Initialize(ReproducerMode::Off, llvm::None))
112 #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
119 return llvm::Error::success();
130 HostInfo::Terminate();
133 Reproducer::Terminate();