diff options
Diffstat (limited to 'lldb/source/Host/macosx/Host.mm')
| -rw-r--r-- | lldb/source/Host/macosx/Host.mm | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 6c0a44b9bfb..99bc7ec8ff1 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -537,47 +537,6 @@ LaunchInNewTerminalWithAppleScript(const char *exe_path, #endif // #if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) -// On MacOSX CrashReporter will display a string for each shared library if -// the shared library has an exported symbol named "__crashreporter_info__". - -static std::mutex &GetCrashReporterMutex() { - static std::mutex g_mutex; - return g_mutex; -} - -extern "C" { -const char *__crashreporter_info__ = NULL; -} - -asm(".desc ___crashreporter_info__, 0x10"); - -void Host::SetCrashDescriptionWithFormat(const char *format, ...) { - static StreamString g_crash_description; - std::lock_guard<std::mutex> guard(GetCrashReporterMutex()); - - if (format) { - va_list args; - va_start(args, format); - g_crash_description.GetString() = llvm::StringRef(""); - g_crash_description.PrintfVarArg(format, args); - va_end(args); - __crashreporter_info__ = g_crash_description.GetData(); - } else { - __crashreporter_info__ = NULL; - } -} - -void Host::SetCrashDescription(const char *cstr) { - std::lock_guard<std::mutex> guard(GetCrashReporterMutex()); - static std::string g_crash_description; - if (cstr) { - g_crash_description.assign(cstr); - __crashreporter_info__ = g_crash_description.c_str(); - } else { - __crashreporter_info__ = NULL; - } -} - bool Host::OpenFileInExternalEditor(const FileSpec &file_spec, uint32_t line_no) { #if defined(__arm__) || defined(__arm64__) || defined(__aarch64__) |

