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())
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
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits