[wayland] Allow debugging kwin with lldb

Summary: LLDB is a debugger originating from the LLVM project.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D23544
This commit is contained in:
Vlad Zagorodniy 2019-08-28 22:19:50 +03:00
parent 3e2000bba6
commit 6d792de74b

View file

@ -312,7 +312,8 @@ static void disablePtrace()
const QFileInfo parent(QStringLiteral("/proc/%1/exe").arg(getppid()));
if (parent.isSymLink() &&
(parent.symLinkTarget().endsWith(QLatin1String("/gdb")) ||
parent.symLinkTarget().endsWith(QLatin1String("/gdbserver")))) {
parent.symLinkTarget().endsWith(QLatin1String("/gdbserver")) ||
parent.symLinkTarget().endsWith(QLatin1String("/lldb-server")))) {
// debugger, don't adjust
return;
}