[Lldb-commits] [PATCH] D106226: [lldb] Improve error message when "lldb attach" fails
APOORV SACHAN via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Jul 17 15:14:17 PDT 2021
apoos-maximus updated this revision to Diff 359584.
apoos-maximus added a comment.
changed the code-styling to comply with pre-merge checks.
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())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106226.359584.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210717/8e9743a5/attachment.bin>
More information about the lldb-commits
mailing list