From 6d792de74b8dc9d12d1ee4d9fd6b24c64ab56147 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 28 Aug 2019 22:19:50 +0300 Subject: [PATCH] [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 --- main_wayland.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main_wayland.cpp b/main_wayland.cpp index 1a3d76ff68..1ad7dd167a 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -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; }