[Lldb-commits] [lldb] [lldb][Linux] Fix checking of error values when attach fails (PR #161673)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 2 10:49:35 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}",
----------------
bulbazord wrote:
This seems like a great candidate for `LLDB_LOG_ERROR`
https://github.com/llvm/llvm-project/pull/161673
More information about the lldb-commits
mailing list