[Lldb-commits] [lldb] [lldb][Linux] Fix checking of error values when attach fails (PR #161673)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 3 01:11:14 PDT 2025


================
@@ -219,7 +219,8 @@ static llvm::Error AddPtraceScopeNote(llvm::Error original_error) {
   Expected<int> ptrace_scope = GetPtraceScope();
   if (auto E = ptrace_scope.takeError()) {
     Log *log = GetLog(POSIXLog::Process);
-    LLDB_LOG(log, "error reading value of ptrace_scope: {0}", E);
+    LLDB_LOG(log, "error reading value of ptrace_scope: {0}",
----------------
DavidSpickett wrote:

Done.

https://github.com/llvm/llvm-project/pull/161673


More information about the lldb-commits mailing list