Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
58d89c46
Commit
58d89c46
authored
Dec 03, 2008
by
hjk
Browse files
issue a warning when trying to attaching to "wrong" pids
parent
3d994523
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggermanager.cpp
View file @
58d89c46
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment