[Lldb-commits] [PATCH] D154532: [lldb] Fix incorrect uses of formatv specifiers in LLDB_LOG
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 5 11:21:54 PDT 2023
JDevlieghere updated this revision to Diff 537435.
JDevlieghere edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154532/new/
https://reviews.llvm.org/D154532
Files:
lldb/source/API/SBTarget.cpp
lldb/source/Core/Debugger.cpp
lldb/source/Core/ThreadedCommunication.cpp
lldb/source/Host/common/ProcessLaunchInfo.cpp
lldb/source/Target/Process.cpp
Index: lldb/source/Target/Process.cpp
===================================================================
--- lldb/source/Target/Process.cpp
+++ lldb/source/Target/Process.cpp
@@ -3600,8 +3600,8 @@
},
8 * 1024 * 1024);
if (!private_state_thread) {
- LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}",
- llvm::toString(private_state_thread.takeError()));
+ LLDB_LOG_ERROR(GetLog(LLDBLog::Host), "failed to launch host thread: {0}",
+ private_state_thread.takeError());
return false;
}
Index: lldb/source/Host/common/ProcessLaunchInfo.cpp
===================================================================
--- lldb/source/Host/common/ProcessLaunchInfo.cpp
+++ lldb/source/Host/common/ProcessLaunchInfo.cpp
@@ -182,8 +182,8 @@
llvm::Expected<HostThread> maybe_thread =
Host::StartMonitoringChildProcess(m_monitor_callback, GetProcessID());
if (!maybe_thread)
- LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}",
- llvm::toString(maybe_thread.takeError()));
+ LLDB_LOG_ERROR(GetLog(LLDBLog::Host), "failed to launch host thread: {0}",
+ maybe_thread.takeError());
return true;
}
return false;
Index: lldb/source/Core/ThreadedCommunication.cpp
===================================================================
--- lldb/source/Core/ThreadedCommunication.cpp
+++ lldb/source/Core/ThreadedCommunication.cpp
@@ -177,8 +177,8 @@
if (error_ptr)
*error_ptr = Status(maybe_thread.takeError());
else {
- LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}",
- llvm::toString(maybe_thread.takeError()));
+ LLDB_LOG_ERROR(GetLog(LLDBLog::Host), "failed to launch host thread: {0}",
+ maybe_thread.takeError());
}
}
Index: lldb/source/Core/Debugger.cpp
===================================================================
--- lldb/source/Core/Debugger.cpp
+++ lldb/source/Core/Debugger.cpp
@@ -1915,8 +1915,8 @@
if (event_handler_thread) {
m_event_handler_thread = *event_handler_thread;
} else {
- LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}",
- llvm::toString(event_handler_thread.takeError()));
+ LLDB_LOG_ERROR(GetLog(LLDBLog::Host), "failed to launch host thread: {0}",
+ event_handler_thread.takeError());
}
// Make sure DefaultEventHandler() is running and listening to events
@@ -2056,8 +2056,8 @@
if (io_handler_thread) {
m_io_handler_thread = *io_handler_thread;
} else {
- LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}",
- llvm::toString(io_handler_thread.takeError()));
+ LLDB_LOG_ERROR(GetLog(LLDBLog::Host), "failed to launch host thread: {0}",
+ io_handler_thread.takeError());
}
}
return m_io_handler_thread.IsJoinable();
Index: lldb/source/API/SBTarget.cpp
===================================================================
--- lldb/source/API/SBTarget.cpp
+++ lldb/source/API/SBTarget.cpp
@@ -1117,8 +1117,9 @@
llvm::Expected<std::vector<BreakpointSP>> expected_vector =
target_sp->GetBreakpointList().FindBreakpointsByName(name);
if (!expected_vector) {
- LLDB_LOG(GetLog(LLDBLog::Breakpoints), "invalid breakpoint name: {}",
- llvm::toString(expected_vector.takeError()));
+ LLDB_LOG_ERROR(GetLog(LLDBLog::Breakpoints),
+ "invalid breakpoint name: {0}",
+ expected_vector.takeError());
return false;
}
for (BreakpointSP bkpt_sp : *expected_vector) {
@@ -1591,7 +1592,7 @@
const char *SBTarget::GetABIName() {
LLDB_INSTRUMENT_VA(this);
-
+
TargetSP target_sp(GetSP());
if (!target_sp)
return nullptr;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154532.537435.patch
Type: text/x-patch
Size: 3876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230705/dec71f19/attachment.bin>
More information about the lldb-commits
mailing list