apoos-maximus updated this revision to Diff 359585. apoos-maximus added a comment.
realigned patch against main branch Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D106226/new/ https://reviews.llvm.org/D106226 Files: lldb/source/Commands/CommandObjectProcess.cpp Index: lldb/source/Commands/CommandObjectProcess.cpp =================================================================== --- lldb/source/Commands/CommandObjectProcess.cpp +++ lldb/source/Commands/CommandObjectProcess.cpp @@ -409,6 +409,10 @@ } } else { result.AppendErrorWithFormat("attach failed: %s\n", error.AsCString()); + result.AppendMessage( + "Could not attach to process. If your uid matches the uid of the target process, \n" + "check the setting of /proc/sys/kernel/yama/ptrace_scope, \n" + "or try again as the root user. \n"); } if (!result.Succeeded())
Index: lldb/source/Commands/CommandObjectProcess.cpp =================================================================== --- lldb/source/Commands/CommandObjectProcess.cpp +++ lldb/source/Commands/CommandObjectProcess.cpp @@ -409,6 +409,10 @@ } } else { result.AppendErrorWithFormat("attach failed: %s\n", error.AsCString()); + result.AppendMessage( + "Could not attach to process. If your uid matches the uid of the target process, \n" + "check the setting of /proc/sys/kernel/yama/ptrace_scope, \n" + "or try again as the root user. \n"); } if (!result.Succeeded())
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits