forked from qt-creator/qt-creator
Debugger: Introduce a pty based channel to inferiors
This is experimental for now and requires QTC_USE_PTY=1 in the environment to be used. Change-Id: I460ce7b9283467d481e903f731f4243b7e5ec094 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "coregdbadapter.h"
|
||||
#include "gdbplainengine.h"
|
||||
#include "termgdbadapter.h"
|
||||
#include "terminal.h"
|
||||
#include "remotegdbserveradapter.h"
|
||||
#include "gdboptionspage.h"
|
||||
|
||||
@@ -790,6 +791,9 @@ void GdbEngine::interruptInferior()
|
||||
QTC_ASSERT(state() == InferiorStopRequested,
|
||||
qDebug() << "INTERRUPT INFERIOR: " << state(); return);
|
||||
|
||||
if (terminal()->sendInterrupt())
|
||||
return;
|
||||
|
||||
if (usesExecInterrupt()) {
|
||||
postCommand("-exec-interrupt", Immediate);
|
||||
} else {
|
||||
@@ -4354,6 +4358,9 @@ void GdbEngine::startGdb(const QStringList &args)
|
||||
const QByteArray dumperSourcePath =
|
||||
ICore::resourcePath().toLocal8Bit() + "/debugger/";
|
||||
|
||||
if (terminal()->isUsable())
|
||||
postCommand("set inferior-tty " + terminal()->slaveDevice());
|
||||
|
||||
const QFileInfo gdbBinaryFile(m_gdb);
|
||||
const QByteArray uninstalledData = gdbBinaryFile.absolutePath().toLocal8Bit()
|
||||
+ "/data-directory/python";
|
||||
|
||||
Reference in New Issue
Block a user