debugger: compile/link fixes

This commit is contained in:
hjk
2009-09-22 11:54:28 +02:00
parent e5f0807f8b
commit 6259789b8d
3 changed files with 12 additions and 2 deletions

View File

@@ -297,7 +297,8 @@ void GdbEngine::gdbProcError(QProcess::ProcessError error)
"invoked program '%1' is missing, or you may have insufficient "
"permissions to invoke the program.")
.arg(theDebuggerStringSetting(GdbLocation));
emitStartFailed();
emit startFailed();
shutdown();
break;
case QProcess::Crashed:
kill = false;

View File

@@ -216,6 +216,13 @@ void PlainGdbAdapter::handleExecRun(const GdbResultRecord &response, const QVari
}
}
void PlainGdbAdapter::startInferior()
{
QTC_ASSERT(state() == InferiorPrepared, qDebug() << state());
setState(InferiorStarting);
m_engine->postCommand(_("-exec-run"), CB(handleExecRun));
}
void PlainGdbAdapter::interruptInferior()
{
debugMessage(_("TRYING TO INTERUPT INFERIOR"));

View File

@@ -32,7 +32,9 @@
#ifndef STANDALONE_RUNNER
#include "gdbengine.h"
#endif
#ifndef Q_OS_WIN
#ifdef Q_OS_WIN
# include <windows.h>
#else
# include <sys/types.h>
# include <unistd.h>
#endif