From d8ec2e04663ecf0f5de6cd7a2740a741d35a75ec Mon Sep 17 00:00:00 2001 From: Oleg Chernovskiy Date: Sun, 11 Jun 2017 22:16:56 +0300 Subject: [PATCH] Make kwin_wayland remotely debuggable Differential Revision: https://phabricator.kde.org/D6160 --- main_wayland.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main_wayland.cpp b/main_wayland.cpp index 7862d68576..0e69d06914 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -408,7 +408,9 @@ static void disablePtrace() #if HAVE_PR_SET_DUMPABLE // check whether we are running under a debugger const QFileInfo parent(QStringLiteral("/proc/%1/exe").arg(getppid())); - if (parent.isSymLink() && parent.symLinkTarget().endsWith(QLatin1String("/gdb"))) { + if (parent.isSymLink() && + (parent.symLinkTarget().endsWith(QLatin1String("/gdb")) || + parent.symLinkTarget().endsWith(QLatin1String("/gdbserver")))) { // debugger, don't adjust return; }