forked from qt-creator/qt-creator
debugger: compile/link fixes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user