Commit a945e963 authored by hjk's avatar hjk

Revive TCF agent

This mainly reverts commit ba47987e.

Conflicts:

	src/plugins/debugger/debugger.pro
	src/plugins/debugger/debuggermanager.cpp
	src/plugins/debugger/debuggermanager.h
	src/plugins/debugger/debuggerplugin.cpp
	src/plugins/debugger/debuggerplugin.h
parent 58c82e03
...@@ -23,6 +23,7 @@ Alternatively, this plugin may be used under the terms of the GNU Lesser General ...@@ -23,6 +23,7 @@ Alternatively, this plugin may be used under the terms of the GNU Lesser General
<argument name="-disable-cdb">Disable Cdb debugger engine</argument> <argument name="-disable-cdb">Disable Cdb debugger engine</argument>
<argument name="-disable-gdb">Disable Gdb debugger engine</argument> <argument name="-disable-gdb">Disable Gdb debugger engine</argument>
<argument name="-disable-sdb">Disable Qt Script debugger engine</argument> <argument name="-disable-sdb">Disable Qt Script debugger engine</argument>
<argument name="-disable-tcf">Disable Tcf debugger engine</argument>
<argument name="-debug" parameter="pid-or-corefile">Attach to Process-Id or Core file</argument> <argument name="-debug" parameter="pid-or-corefile">Attach to Process-Id or Core file</argument>
<argument name="-wincrashevent" parameter="event-handle">Event handle used for attaching to crashed processes</argument> <argument name="-wincrashevent" parameter="event-handle">Event handle used for attaching to crashed processes</argument>
</argumentList> </argumentList>
......
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AttachTcfDialog</class>
<widget class="QDialog" name="AttachTcfDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>310</width>
<height>224</height>
</rect>
</property>
<property name="windowTitle">
<string>Start Debugger</string>
</property>
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>9</number>
</property>
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="channelLabel">
<property name="text">
<string>Host and port:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="channelLineEdit">
<property name="text">
<string notr="true">localhost:5115</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="architectureLabel">
<property name="text">
<string>Architecture:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="architectureComboBox"/>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="useServerStartScriptCheckBox"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="useServerStartScriptLabel">
<property name="text">
<string>Use server start script:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="Utils::PathChooser" name="serverStartScript" native="true"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="serverStartScriptLabel">
<property name="text">
<string>Server start script:</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Utils::PathChooser</class>
<extends>QWidget</extends>
<header location="global">utils/pathchooser.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
...@@ -80,6 +80,7 @@ SOURCES += breakhandler.cpp \ ...@@ -80,6 +80,7 @@ SOURCES += breakhandler.cpp \
FORMS += attachexternaldialog.ui \ FORMS += attachexternaldialog.ui \
attachcoredialog.ui \ attachcoredialog.ui \
attachtcfdialog.ui \
breakbyfunction.ui \ breakbyfunction.ui \
breakcondition.ui \ breakcondition.ui \
dumperoptionpage.ui \ dumperoptionpage.ui \
...@@ -103,6 +104,7 @@ include(cdb/cdb.pri) ...@@ -103,6 +104,7 @@ include(cdb/cdb.pri)
include(gdb/gdb.pri) include(gdb/gdb.pri)
include(script/script.pri) include(script/script.pri)
include(pdb/pdb.pri) include(pdb/pdb.pri)
include(tcf/tcf.pri)
include(shared/shared.pri) include(shared/shared.pri)
OTHER_FILES += Debugger.pluginspec OTHER_FILES += Debugger.pluginspec
...@@ -112,6 +112,7 @@ enum DebuggerStartMode ...@@ -112,6 +112,7 @@ enum DebuggerStartMode
StartExternal, // Start binary found in file system StartExternal, // Start binary found in file system
AttachExternal, // Attach to running process by process id AttachExternal, // Attach to running process by process id
AttachCrashedExternal, // Attach to crashed process by process id AttachCrashedExternal, // Attach to crashed process by process id
AttachTcf, // Attach to a running Target Communication Framework agent
AttachCore, // Attach to a core file AttachCore, // Attach to a core file
StartRemote // Start and attach to a remote process StartRemote // Start and attach to a remote process
}; };
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "ui_attachcoredialog.h" #include "ui_attachcoredialog.h"
#include "ui_attachexternaldialog.h" #include "ui_attachexternaldialog.h"
#include "ui_attachtcfdialog.h"
#include "ui_startexternaldialog.h" #include "ui_startexternaldialog.h"
#include "ui_startremotedialog.h" #include "ui_startremotedialog.h"
...@@ -413,6 +414,95 @@ void AttachExternalDialog::pidChanged(const QString &pid) ...@@ -413,6 +414,95 @@ void AttachExternalDialog::pidChanged(const QString &pid)
} }
///////////////////////////////////////////////////////////////////////
//
// AttachTcfDialog
//
///////////////////////////////////////////////////////////////////////
AttachTcfDialog::AttachTcfDialog(QWidget *parent)
: QDialog(parent),
m_ui(new Ui::AttachTcfDialog)
{
m_ui->setupUi(this);
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
m_ui->serverStartScript->setExpectedKind(Utils::PathChooser::File);
m_ui->serverStartScript->setPromptDialogTitle(tr("Select Executable"));
connect(m_ui->useServerStartScriptCheckBox, SIGNAL(toggled(bool)),
this, SLOT(updateState()));
connect(m_ui->buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(m_ui->buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
updateState();
}
AttachTcfDialog::~AttachTcfDialog()
{
delete m_ui;
}
void AttachTcfDialog::setRemoteChannel(const QString &channel)
{
m_ui->channelLineEdit->setText(channel);
}
QString AttachTcfDialog::remoteChannel() const
{
return m_ui->channelLineEdit->text();
}
void AttachTcfDialog::setRemoteArchitectures(const QStringList &list)
{
m_ui->architectureComboBox->clear();
if (!list.isEmpty()) {
m_ui->architectureComboBox->insertItems(0, list);
m_ui->architectureComboBox->setCurrentIndex(0);
}
}
void AttachTcfDialog::setRemoteArchitecture(const QString &arch)
{
int index = m_ui->architectureComboBox->findText(arch);
if (index != -1)
m_ui->architectureComboBox->setCurrentIndex(index);
}
QString AttachTcfDialog::remoteArchitecture() const
{
int index = m_ui->architectureComboBox->currentIndex();
return m_ui->architectureComboBox->itemText(index);
}
void AttachTcfDialog::setServerStartScript(const QString &scriptName)
{
m_ui->serverStartScript->setPath(scriptName);
}
QString AttachTcfDialog::serverStartScript() const
{
return m_ui->serverStartScript->path();
}
void AttachTcfDialog::setUseServerStartScript(bool on)
{
m_ui->useServerStartScriptCheckBox->setChecked(on);
}
bool AttachTcfDialog::useServerStartScript() const
{
return m_ui->useServerStartScriptCheckBox->isChecked();
}
void AttachTcfDialog::updateState()
{
bool enabled = m_ui->useServerStartScriptCheckBox->isChecked();
m_ui->serverStartScriptLabel->setEnabled(enabled);
m_ui->serverStartScript->setEnabled(enabled);
}
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
// //
// StartExternalDialog // StartExternalDialog
......
...@@ -42,6 +42,7 @@ class QDialogButtonBox; ...@@ -42,6 +42,7 @@ class QDialogButtonBox;
namespace Ui { namespace Ui {
class AttachCoreDialog; class AttachCoreDialog;
class AttachExternalDialog; class AttachExternalDialog;
class AttachTcfDialog;
class StartExternalDialog; class StartExternalDialog;
class StartRemoteDialog; class StartRemoteDialog;
} // namespace Ui } // namespace Ui
...@@ -107,6 +108,31 @@ private: ...@@ -107,6 +108,31 @@ private:
ProcessListFilterModel *m_model; ProcessListFilterModel *m_model;
}; };
class AttachTcfDialog : public QDialog
{
Q_OBJECT
public:
explicit AttachTcfDialog(QWidget *parent);
~AttachTcfDialog();
void setRemoteChannel(const QString &host);
void setRemoteArchitecture(const QString &arch);
void setRemoteArchitectures(const QStringList &arches);
QString remoteChannel() const;
QString remoteArchitecture() const;
void setServerStartScript(const QString &scriptName);
QString serverStartScript() const;
void setUseServerStartScript(bool on);
bool useServerStartScript() const;
private slots:
void updateState();
private:
Ui::AttachTcfDialog *m_ui;
};
class StartExternalDialog : public QDialog class StartExternalDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT
......
...@@ -157,6 +157,7 @@ namespace Internal { ...@@ -157,6 +157,7 @@ namespace Internal {
IDebuggerEngine *createGdbEngine(DebuggerManager *parent); IDebuggerEngine *createGdbEngine(DebuggerManager *parent);
IDebuggerEngine *createScriptEngine(DebuggerManager *parent); IDebuggerEngine *createScriptEngine(DebuggerManager *parent);
IDebuggerEngine *createPdbEngine(DebuggerManager *parent); IDebuggerEngine *createPdbEngine(DebuggerManager *parent);
IDebuggerEngine *createTcfEngine(DebuggerManager *parent);
// The createCdbEngine function takes a list of options pages it can add to. // The createCdbEngine function takes a list of options pages it can add to.
// This allows for having a "enabled" toggle on the page independently // This allows for having a "enabled" toggle on the page independently
...@@ -251,6 +252,7 @@ static Debugger::Internal::IDebuggerEngine *gdbEngine = 0; ...@@ -251,6 +252,7 @@ static Debugger::Internal::IDebuggerEngine *gdbEngine = 0;
static Debugger::Internal::IDebuggerEngine *scriptEngine = 0; static Debugger::Internal::IDebuggerEngine *scriptEngine = 0;
static Debugger::Internal::IDebuggerEngine *cdbEngine = 0; static Debugger::Internal::IDebuggerEngine *cdbEngine = 0;
static Debugger::Internal::IDebuggerEngine *pdbEngine = 0; static Debugger::Internal::IDebuggerEngine *pdbEngine = 0;
static Debugger::Internal::IDebuggerEngine *tcfEngine = 0;
struct DebuggerManagerPrivate struct DebuggerManagerPrivate
{ {
...@@ -345,6 +347,7 @@ DebuggerManager::~DebuggerManager() ...@@ -345,6 +347,7 @@ DebuggerManager::~DebuggerManager()
doDelete(pdbEngine); doDelete(pdbEngine);
doDelete(gdbEngine); doDelete(gdbEngine);
doDelete(cdbEngine); doDelete(cdbEngine);
doDelete(tcfEngine);
doDelete(d->m_breakHandler); doDelete(d->m_breakHandler);
doDelete(d->m_threadsHandler); doDelete(d->m_threadsHandler);
...@@ -357,6 +360,7 @@ DebuggerManager::~DebuggerManager() ...@@ -357,6 +360,7 @@ DebuggerManager::~DebuggerManager()
doDelete(gdbEngine); doDelete(gdbEngine);
doDelete(scriptEngine); doDelete(scriptEngine);
doDelete(cdbEngine); doDelete(cdbEngine);
doDelete(tcfEngine);
#undef doDelete #undef doDelete
DebuggerManagerPrivate::instance = 0; DebuggerManagerPrivate::instance = 0;
delete d; delete d;
...@@ -664,6 +668,11 @@ QList<Core::IOptionsPage*> DebuggerManager::initializeEngines(unsigned enabledTy ...@@ -664,6 +668,11 @@ QList<Core::IOptionsPage*> DebuggerManager::initializeEngines(unsigned enabledTy
//pdbEngine->addOptionPages(&rc); //pdbEngine->addOptionPages(&rc);
} }
if (enabledTypeFlags & TcfEngineType) {
tcfEngine = createTcfEngine(this);
tcfEngine->addOptionPages(&rc);
}
d->m_engine = 0; d->m_engine = 0;
STATE_DEBUG(gdbEngine << cdbEngine << scriptEngine STATE_DEBUG(gdbEngine << cdbEngine << scriptEngine
<< pdbEngine << rc.size()); << pdbEngine << rc.size());
...@@ -1038,6 +1047,9 @@ static IDebuggerEngine *debuggerEngineForExecutable(const QString &executable, ...@@ -1038,6 +1047,9 @@ static IDebuggerEngine *debuggerEngineForExecutable(const QString &executable,
// Debugger type for mode // Debugger type for mode
static IDebuggerEngine *debuggerEngineForMode(DebuggerStartMode startMode, QString *errorMessage) static IDebuggerEngine *debuggerEngineForMode(DebuggerStartMode startMode, QString *errorMessage)
{ {
if (startMode == AttachTcf)
return tcfEngine;
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
// Preferably Windows debugger for attaching locally. // Preferably Windows debugger for attaching locally.
if (startMode != StartRemote && cdbEngine) if (startMode != StartRemote && cdbEngine)
...@@ -1676,10 +1688,12 @@ void DebuggerManager::showQtDumperLibraryWarning(const QString &details) ...@@ -1676,10 +1688,12 @@ void DebuggerManager::showQtDumperLibraryWarning(const QString &details)
dialog.setDetailedText(details); dialog.setDetailedText(details);
dialog.exec(); dialog.exec();
if (dialog.clickedButton() == qtPref) { if (dialog.clickedButton() == qtPref) {
Core::ICore::instance()->showOptionsDialog(_(Qt4ProjectManager::Constants::QT_SETTINGS_CATEGORY), Core::ICore::instance()->showOptionsDialog(
_(Qt4ProjectManager::Constants::QTVERSION_SETTINGS_PAGE_ID)); _(Qt4ProjectManager::Constants::QT_SETTINGS_CATEGORY),
_(Qt4ProjectManager::Constants::QTVERSION_SETTINGS_PAGE_ID));
} else if (dialog.clickedButton() == helperOff) { } else if (dialog.clickedButton() == helperOff) {
theDebuggerAction(UseDebuggingHelpers)->setValue(qVariantFromValue(false), false); theDebuggerAction(UseDebuggingHelpers)
->setValue(qVariantFromValue(false), false);
} }
} }
......
...@@ -92,6 +92,7 @@ class CdbDumperHelper; ...@@ -92,6 +92,7 @@ class CdbDumperHelper;
class CdbDumperInitThread; class CdbDumperInitThread;
class CdbExceptionLoggerEventCallback; class CdbExceptionLoggerEventCallback;
class GdbEngine; class GdbEngine;
class TcfEngine;
class CdbDebugEngine; class CdbDebugEngine;
class CdbDebugEnginePrivate; class CdbDebugEnginePrivate;
class TrkGdbAdapter; class TrkGdbAdapter;
...@@ -140,10 +141,12 @@ enum DebuggerEngineTypeFlags ...@@ -140,10 +141,12 @@ enum DebuggerEngineTypeFlags
ScriptEngineType = 0x02, ScriptEngineType = 0x02,
CdbEngineType = 0x04, CdbEngineType = 0x04,
PdbEngineType = 0x08, PdbEngineType = 0x08,
TcfEngineType = 0x10,
AllEngineTypes = GdbEngineType AllEngineTypes = GdbEngineType
| ScriptEngineType | ScriptEngineType
| CdbEngineType | CdbEngineType
| PdbEngineType | PdbEngineType
| TcfEngineType
}; };
QDebug operator<<(QDebug d, DebuggerState state); QDebug operator<<(QDebug d, DebuggerState state);
...@@ -171,6 +174,7 @@ public: ...@@ -171,6 +174,7 @@ public:
friend class Internal::GdbEngine; friend class Internal::GdbEngine;
friend class Internal::ScriptEngine; friend class Internal::ScriptEngine;
friend class Internal::PdbEngine; friend class Internal::PdbEngine;
friend class Internal::TcfEngine;
friend class Internal::CdbDebugEngine; friend class Internal::CdbDebugEngine;
friend class Internal::CdbDebugEnginePrivate; friend class Internal::CdbDebugEnginePrivate;
friend class Internal::TrkGdbAdapter; friend class Internal::TrkGdbAdapter;
......
...@@ -122,6 +122,7 @@ const char * const M_DEBUG_START_DEBUGGING = "QtCreator.Menu.Debug.StartDebuggin ...@@ -122,6 +122,7 @@ const char * const M_DEBUG_START_DEBUGGING = "QtCreator.Menu.Debug.StartDebuggin
const char * const STARTEXTERNAL = "Debugger.StartExternal"; const char * const STARTEXTERNAL = "Debugger.StartExternal";
const char * const ATTACHEXTERNAL = "Debugger.AttachExternal"; const char * const ATTACHEXTERNAL = "Debugger.AttachExternal";
const char * const ATTACHCORE = "Debugger.AttachCore"; const char * const ATTACHCORE = "Debugger.AttachCore";
const char * const ATTACHTCF = "Debugger.AttachTcf";
const char * const ATTACHREMOTE = "Debugger.AttachRemote"; const char * const ATTACHREMOTE = "Debugger.AttachRemote";
const char * const DETACH = "Debugger.Detach"; const char * const DETACH = "Debugger.Detach";
...@@ -625,7 +626,7 @@ static bool parseArgument(QStringList::const_iterator &it, ...@@ -625,7 +626,7 @@ static bool parseArgument(QStringList::const_iterator &it,
} }
return true; return true;
} }
// engine disabling // Engine disabling.
if (option == _("-disable-cdb")) { if (option == _("-disable-cdb")) {
*enabledEngines &= ~Debugger::CdbEngineType; *enabledEngines &= ~Debugger::CdbEngineType;
return true; return true;
...@@ -638,14 +639,18 @@ static bool parseArgument(QStringList::const_iterator &it, ...@@ -638,14 +639,18 @@ static bool parseArgument(QStringList::const_iterator &it,
*enabledEngines &= ~Debugger::ScriptEngineType; *enabledEngines &= ~Debugger::ScriptEngineType;
return true; return true;
} }
if (option == QLatin1String("-disable-tcf")) {
*enabledEngines &= ~TcfEngineType;
return true;
}
*errorMessage = DebuggerPlugin::tr("Invalid debugger option: %1").arg(option); *errorMessage = DebuggerPlugin::tr("Invalid debugger option: %1").arg(option);
return false; return false;
} }
static bool parseArguments(const QStringList &args, static bool parseArguments(const QStringList &args,
DebuggerPlugin::AttachRemoteParameters *attachRemoteParameters, DebuggerPlugin::AttachRemoteParameters *attachRemoteParameters,
unsigned *enabledEngines, QString *errorMessage) unsigned *enabledEngines, QString *errorMessage)
{ {
const QStringList::const_iterator cend = args.constEnd(); const QStringList::const_iterator cend = args.constEnd();
for (QStringList::const_iterator it = args.constBegin(); it != cend; ++it) for (QStringList::const_iterator it = args.constBegin(); it != cend; ++it)
...@@ -747,6 +752,13 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess ...@@ -747,6 +752,13 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
m_attachCoreAction->setText(tr("Attach to Core...")); m_attachCoreAction->setText(tr("Attach to Core..."));
connect(m_attachCoreAction, SIGNAL(triggered()), this, SLOT(attachCore())); connect(m_attachCoreAction, SIGNAL(triggered()), this, SLOT(attachCore()));
m_attachTcfAction = new QAction(this);
m_attachTcfAction->setText(tr("Attach to Running Tcf Agent..."));
m_attachTcfAction->setToolTip(tr("This attaches to a running "
"'Target Communication Framework' agent."));
connect(m_attachTcfAction, SIGNAL(triggered()),
this, SLOT(attachRemoteTcf()));
m_startRemoteAction = new QAction(this); m_startRemoteAction = new QAction(this);
m_startRemoteAction->setText(tr("Start and Attach to Remote Application...")); m_startRemoteAction->setText(tr("Start and Attach to Remote Application..."));
connect(m_startRemoteAction, SIGNAL(triggered()), connect(m_startRemoteAction, SIGNAL(triggered()),
...@@ -779,9 +791,14 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess ...@@ -779,9 +791,14 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
cmd = am->registerAction(m_attachCoreAction, cmd = am->registerAction(m_attachCoreAction,
Constants::ATTACHCORE, globalcontext); Constants::ATTACHCORE, globalcontext);
cmd->setAttribute(Command::CA_Hide); cmd->setAttribute(Command::CA_Hide);
mstart->addAction(cmd, CC::G_DEFAULT_ONE); mstart->addAction(cmd, CC::G_DEFAULT_ONE);
cmd = am->registerAction(m_attachTcfAction,
Constants::ATTACHTCF, globalcontext);
mstart->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
cmd = am->registerAction(m_startRemoteAction, cmd = am->registerAction(m_startRemoteAction,
Constants::ATTACHREMOTE, globalcontext); Constants::ATTACHREMOTE, globalcontext);
cmd->setAttribute(Command::CA_Hide); cmd->setAttribute(Command::CA_Hide);
...@@ -1520,6 +1537,39 @@ void DebuggerPlugin::toggleBreakpoint() ...@@ -1520,6 +1537,39 @@ void DebuggerPlugin::toggleBreakpoint()
m_manager->toggleBreakpoint(fileName, lineNumber); m_manager->toggleBreakpoint(fileName, lineNumber);
} }
void DebuggerPlugin::attachRemoteTcf()
{
const DebuggerStartParametersPtr sp(new DebuggerStartParameters);
AttachTcfDialog dlg(m_uiSwitcher->mainWindow());
QStringList arches;
arches.append(_("i386:x86-64:intel"));
dlg.setRemoteArchitectures(arches);
dlg.setRemoteChannel(
configValue(_("LastTcfRemoteChannel")).toString());
dlg.setRemoteArchitecture(
configValue(_("LastTcfRemoteArchitecture")).toString());
dlg.setServerStartScript(
configValue(_("LastTcfServerStartScript")).toString());
dlg.setUseServerStartScript(
configValue(_("LastTcfUseServerStartScript")).toBool());
if (dlg.exec() != QDialog::Accepted)
return;
setConfigValue(_("LastTcfRemoteChannel"), dlg.remoteChannel());
setConfigValue(_("LastTcfRemoteArchitecture"), dlg.remoteArchitecture());
setConfigValue(_("LastTcfServerStartScript"), dlg.serverStartScript());
setConfigValue(_("LastTcfUseServerStartScript"), dlg.useServerStartScript());
sp->remoteChannel = dlg.remoteChannel();
sp->remoteArchitecture = dlg.remoteArchitecture();
sp->serverStartScript = dlg.serverStartScript();
sp->startMode = AttachTcf;
if (dlg.useServerStartScript())
sp->serverStartScript = dlg.serverStartScript();
if (RunControl *runControl = m_debuggerRunControlFactory->create(sp))
ProjectExplorerPlugin::instance()
->startRunControl(runControl, PE::DEBUGMODE);
}
#include "debuggerplugin.moc" #include "debuggerplugin.moc"
Q_EXPORT_PLUGIN(DebuggerPlugin) Q_EXPORT_PLUGIN(DebuggerPlugin)
...@@ -120,6 +120,7 @@ private slots: ...@@ -120,6 +120,7 @@ private slots:
void attachExternalApplication(); void attachExternalApplication();
void attachCore(); void attachCore();
void attachCmdLine(); void attachCmdLine();
void attachRemoteTcf();
void enableReverseDebuggingTriggered(const QVariant &value); void enableReverseDebuggingTriggered(const QVariant &value);
void languageChanged(const QString &debuggerLanguage); void languageChanged(const QString &debuggerLanguage);
...@@ -153,6 +154,7 @@ private: ...@@ -153,6 +154,7 @@ private:
QAction *m_startRemoteAction; QAction *m_startRemoteAction;
QAction *m_attachExternalAction; QAction *m_attachExternalAction;
QAction *m_attachCoreAction; QAction *m_attachCoreAction;
QAction *m_attachTcfAction;
QAction *m_detachAction; QAction *m_detachAction;
QComboBox *m_langBox; QComboBox *m_langBox;
QToolButton *m_reverseToolButton; QToolButton *m_reverseToolButton;
......
This diff is collapsed.