Commit 442fef17 authored by hjk's avatar hjk
Browse files

Debugger: Be more explicit about ptrace configuration

Task-number: QTCREATORBUG-14057
Change-Id: I4d69363c40cd31ca6b28acf9b28a38f099aa27f3
Reviewed-by: default avatarChristian Stenger <>
parent cf35d7a1
......@@ -30,6 +30,8 @@
#include "attachgdbadapter.h"
#include <coreplugin/messagebox.h>
#include <debugger/debuggerprotocol.h>
#include <debugger/debuggerstringutils.h>
#include <debugger/debuggerstartparameters.h>
......@@ -104,8 +106,9 @@ void GdbAttachEngine::handleAttach(const DebuggerResponse &response)
case ResultError:
if (["msg"].data() == "ptrace: Operation not permitted.") {
showStatusMessage(tr("Failed to attach to application: %1")
QString msg = msgPtraceError(startParameters().startMode);
showStatusMessage(tr("Failed to attach to application: %1").arg(msg));
Core::AsynchronousMessageBox::warning(tr("Debugger Error"), msg);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment