summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggermanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp
index 04875e12fd..f696d72846 100644
--- a/src/plugins/debugger/debuggermanager.cpp
+++ b/src/plugins/debugger/debuggermanager.cpp
@@ -791,6 +791,11 @@ bool DebuggerManager::startNewDebugger(StartMode mode)
m_processArgs = QStringList();
m_workingDir = QString();
m_attachedPID = dlg.attachPID();
+ if (m_attachedPID == 0) {
+ QMessageBox::warning(mainWindow(), tr("Warning"),
+ tr("Cannot attach to PID 0"));
+ return false;
+ }
} else if (startMode() == startInternal) {
if (m_executable.isEmpty()) {
QString startDirectory = m_executable;