Skip to content

Commit 9f38001

Browse files
committed
[lldb] [Process/FreeBSD] Ensure that errors are always handled
Ensure that the llvm::Error instances are always considered handled by replacing LLDB_LOG with LLDB_LOG_ERROR. Differential Revision: https://reviews.llvm.org/D96558
1 parent ba2aa5f commit 9f38001

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ void NativeProcessFreeBSD::MonitorSIGTRAP(lldb::pid_t pid) {
213213
llvm::Error error = t.CopyWatchpointsFrom(
214214
static_cast<NativeThreadFreeBSD &>(*GetCurrentThread()));
215215
if (error) {
216-
LLDB_LOG(log, "failed to copy watchpoints to new thread {0}: {1}",
217-
info.pl_lwpid, llvm::toString(std::move(error)));
216+
LLDB_LOG_ERROR(log, std::move(error),
217+
"failed to copy watchpoints to new thread {1}: {0}",
218+
info.pl_lwpid);
218219
SetState(StateType::eStateInvalid);
219220
return;
220221
}

0 commit comments

Comments
 (0)