forked from qt-creator/qt-creator
Debugger: Be more explicit about ptrace configuration
Task-number: QTCREATORBUG-14057 Change-Id: I4d69363c40cd31ca6b28acf9b28a38f099aa27f3 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include "attachgdbadapter.h"
|
#include "attachgdbadapter.h"
|
||||||
|
|
||||||
|
#include <coreplugin/messagebox.h>
|
||||||
|
|
||||||
#include <debugger/debuggerprotocol.h>
|
#include <debugger/debuggerprotocol.h>
|
||||||
#include <debugger/debuggerstringutils.h>
|
#include <debugger/debuggerstringutils.h>
|
||||||
#include <debugger/debuggerstartparameters.h>
|
#include <debugger/debuggerstartparameters.h>
|
||||||
@@ -104,8 +106,9 @@ void GdbAttachEngine::handleAttach(const DebuggerResponse &response)
|
|||||||
break;
|
break;
|
||||||
case ResultError:
|
case ResultError:
|
||||||
if (response.data["msg"].data() == "ptrace: Operation not permitted.") {
|
if (response.data["msg"].data() == "ptrace: Operation not permitted.") {
|
||||||
showStatusMessage(tr("Failed to attach to application: %1")
|
QString msg = msgPtraceError(startParameters().startMode);
|
||||||
.arg(msgPtraceError(startParameters().startMode)));
|
showStatusMessage(tr("Failed to attach to application: %1").arg(msg));
|
||||||
|
Core::AsynchronousMessageBox::warning(tr("Debugger Error"), msg);
|
||||||
notifyEngineIll();
|
notifyEngineIll();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user