From 9f38001bf07252bc29671cf49b42351f34172dea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 12 Feb 2021 00:51:42 +0100 Subject: [PATCH] [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 --- lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp b/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp index 10fafe6..44797cd 100644 --- a/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp +++ b/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp @@ -213,8 +213,9 @@ void NativeProcessFreeBSD::MonitorSIGTRAP(lldb::pid_t pid) { llvm::Error error = t.CopyWatchpointsFrom( static_cast(*GetCurrentThread())); if (error) { - LLDB_LOG(log, "failed to copy watchpoints to new thread {0}: {1}", - info.pl_lwpid, llvm::toString(std::move(error))); + LLDB_LOG_ERROR(log, std::move(error), + "failed to copy watchpoints to new thread {1}: {0}", + info.pl_lwpid); SetState(StateType::eStateInvalid); return; } -- 2.7.4