Commit 6259789b authored by hjk's avatar hjk
Browse files

debugger: compile/link fixes

parent e5f0807f
......@@ -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;
......
......@@ -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"));
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment