forked from qt-creator/qt-creator
Debugger/Windows[gdb]: Fix Attach to running (gui) process.
Initial-patch-by: hjk Task-number: QTCREATORBUG-2084
This commit is contained in:
@@ -78,7 +78,7 @@ void AttachGdbAdapter::startInferior()
|
||||
void AttachGdbAdapter::handleAttach(const GdbResponse &response)
|
||||
{
|
||||
QTC_ASSERT(state() == InferiorStarting, qDebug() << state());
|
||||
if (response.resultClass == GdbResultDone) {
|
||||
if (response.resultClass == GdbResultDone || response.resultClass == GdbResultRunning) {
|
||||
setState(InferiorStopped);
|
||||
debugMessage(_("INFERIOR ATTACHED"));
|
||||
showStatusMessage(msgAttachedToStoppedInferior());
|
||||
|
||||
Reference in New Issue
Block a user