Index: lldb/source/API/SBTarget.cpp =================================================================== --- lldb/source/API/SBTarget.cpp +++ lldb/source/API/SBTarget.cpp @@ -1117,7 +1117,7 @@ llvm::Expected> expected_vector = target_sp->GetBreakpointList().FindBreakpointsByName(name); if (!expected_vector) { - LLDB_LOG(GetLog(LLDBLog::Breakpoints), "invalid breakpoint name: {}", + LLDB_LOG(GetLog(LLDBLog::Breakpoints), "invalid breakpoint name: {0}", llvm::toString(expected_vector.takeError())); return false; } @@ -1591,7 +1591,7 @@ const char *SBTarget::GetABIName() { LLDB_INSTRUMENT_VA(this); - + TargetSP target_sp(GetSP()); if (!target_sp) return nullptr; Index: lldb/source/Core/Debugger.cpp =================================================================== --- lldb/source/Core/Debugger.cpp +++ lldb/source/Core/Debugger.cpp @@ -1915,7 +1915,7 @@ if (event_handler_thread) { m_event_handler_thread = *event_handler_thread; } else { - LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}", + LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {0}", llvm::toString(event_handler_thread.takeError())); } @@ -2056,7 +2056,7 @@ if (io_handler_thread) { m_io_handler_thread = *io_handler_thread; } else { - LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}", + LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {0}", llvm::toString(io_handler_thread.takeError())); } } Index: lldb/source/Core/ThreadedCommunication.cpp =================================================================== --- lldb/source/Core/ThreadedCommunication.cpp +++ lldb/source/Core/ThreadedCommunication.cpp @@ -177,7 +177,7 @@ if (error_ptr) *error_ptr = Status(maybe_thread.takeError()); else { - LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}", + LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {0}", llvm::toString(maybe_thread.takeError())); } } Index: lldb/source/Host/common/ProcessLaunchInfo.cpp =================================================================== --- lldb/source/Host/common/ProcessLaunchInfo.cpp +++ lldb/source/Host/common/ProcessLaunchInfo.cpp @@ -182,7 +182,7 @@ llvm::Expected maybe_thread = Host::StartMonitoringChildProcess(m_monitor_callback, GetProcessID()); if (!maybe_thread) - LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}", + LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {0}", llvm::toString(maybe_thread.takeError())); return true; } Index: lldb/source/Target/Process.cpp =================================================================== --- lldb/source/Target/Process.cpp +++ lldb/source/Target/Process.cpp @@ -3600,7 +3600,7 @@ }, 8 * 1024 * 1024); if (!private_state_thread) { - LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}", + LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {0}", llvm::toString(private_state_thread.takeError())); return false; }