forked from qt-creator/qt-creator
debugger: code cosmetics
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Debugger {
|
|||||||
const int ConnectionWaitTimeMs = 5000;
|
const int ConnectionWaitTimeMs = 5000;
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
DebuggerEngine *createCdbEngine(const DebuggerStartParameters &, QString *);
|
DebuggerEngine *createCdbEngine(const DebuggerStartParameters &, QString *);
|
||||||
DebuggerEngine *createGdbEngine(const DebuggerStartParameters &);
|
DebuggerEngine *createGdbEngine(const DebuggerStartParameters &);
|
||||||
DebuggerEngine *createQmlEngine(const DebuggerStartParameters &);
|
DebuggerEngine *createQmlEngine(const DebuggerStartParameters &);
|
||||||
@@ -21,16 +22,16 @@ DebuggerEngine *createQmlEngine(const DebuggerStartParameters &);
|
|||||||
DebuggerEngine *createQmlCppEngine(const DebuggerStartParameters &sp)
|
DebuggerEngine *createQmlCppEngine(const DebuggerStartParameters &sp)
|
||||||
{
|
{
|
||||||
QmlCppEngine *newEngine = new QmlCppEngine(sp);
|
QmlCppEngine *newEngine = new QmlCppEngine(sp);
|
||||||
if (newEngine->cppEngine()) {
|
if (newEngine->cppEngine())
|
||||||
return newEngine;
|
return newEngine;
|
||||||
} else {
|
delete newEngine;
|
||||||
delete newEngine;
|
return 0;
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|
||||||
struct QmlCppEnginePrivate {
|
struct QmlCppEnginePrivate
|
||||||
|
{
|
||||||
QmlCppEnginePrivate();
|
QmlCppEnginePrivate();
|
||||||
|
|
||||||
QmlEngine *m_qmlEngine;
|
QmlEngine *m_qmlEngine;
|
||||||
@@ -42,11 +43,11 @@ struct QmlCppEnginePrivate {
|
|||||||
bool m_isInitialStartup;
|
bool m_isInitialStartup;
|
||||||
};
|
};
|
||||||
|
|
||||||
QmlCppEnginePrivate::QmlCppEnginePrivate() :
|
QmlCppEnginePrivate::QmlCppEnginePrivate()
|
||||||
m_qmlEngine(0),
|
: m_qmlEngine(0)
|
||||||
m_cppEngine(0),
|
, m_cppEngine(0)
|
||||||
m_activeEngine(0),
|
, m_activeEngine(0)
|
||||||
m_shutdownOk(true)
|
, m_shutdownOk(true)
|
||||||
, m_shutdownDeferred(false)
|
, m_shutdownDeferred(false)
|
||||||
, m_shutdownDone(false)
|
, m_shutdownDone(false)
|
||||||
, m_isInitialStartup(true)
|
, m_isInitialStartup(true)
|
||||||
@@ -70,36 +71,39 @@ QmlCppEngine::QmlCppEngine(const DebuggerStartParameters &sp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
d->m_cppEngine->setSlave(true);
|
d->m_cppEngine->setSlaveEngine(true);
|
||||||
d->m_qmlEngine->setSlave(true);
|
d->m_qmlEngine->setSlaveEngine(true);
|
||||||
|
|
||||||
d->m_activeEngine = d->m_cppEngine;
|
d->m_activeEngine = d->m_cppEngine;
|
||||||
connect(d->m_cppEngine, SIGNAL(stateChanged(DebuggerState)), SLOT(masterEngineStateChanged(DebuggerState)));
|
connect(d->m_cppEngine, SIGNAL(stateChanged(DebuggerState)),
|
||||||
connect(d->m_qmlEngine, SIGNAL(stateChanged(DebuggerState)), SLOT(slaveEngineStateChanged(DebuggerState)));
|
SLOT(masterEngineStateChanged(DebuggerState)));
|
||||||
|
connect(d->m_qmlEngine, SIGNAL(stateChanged(DebuggerState)),
|
||||||
|
SLOT(slaveEngineStateChanged(DebuggerState)));
|
||||||
|
|
||||||
Core::EditorManager *em = Core::EditorManager::instance();
|
connect(Core::EditorManager::instance(),
|
||||||
connect(em, SIGNAL(currentEditorChanged(Core::IEditor*)), SLOT(editorChanged(Core::IEditor*)));
|
SIGNAL(currentEditorChanged(Core::IEditor*)),
|
||||||
|
SLOT(editorChanged(Core::IEditor*)));
|
||||||
}
|
}
|
||||||
|
|
||||||
QmlCppEngine::~QmlCppEngine()
|
QmlCppEngine::~QmlCppEngine()
|
||||||
{
|
{
|
||||||
delete d->m_qmlEngine;
|
delete d->m_qmlEngine;
|
||||||
delete d->m_cppEngine;
|
|
||||||
d->m_qmlEngine = 0;
|
d->m_qmlEngine = 0;
|
||||||
|
delete d->m_cppEngine;
|
||||||
d->m_cppEngine = 0;
|
d->m_cppEngine = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlCppEngine::editorChanged(Core::IEditor *editor)
|
void QmlCppEngine::editorChanged(Core::IEditor *editor)
|
||||||
{
|
{
|
||||||
// change the engine based on editor, but only if we're not currently in stopped state.
|
// Change the engine based on editor, but only if we're not
|
||||||
|
// currently in stopped state.
|
||||||
if (state() != InferiorRunOk || !editor)
|
if (state() != InferiorRunOk || !editor)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (editor->id() == QmlJSEditor::Constants::C_QMLJSEDITOR_ID) {
|
if (editor->id() == QmlJSEditor::Constants::C_QMLJSEDITOR_ID)
|
||||||
setActiveEngine(QmlLanguage);
|
setActiveEngine(QmlLanguage);
|
||||||
} else {
|
else
|
||||||
setActiveEngine(CppLanguage);
|
setActiveEngine(CppLanguage);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlCppEngine::setActiveEngine(DebuggerLanguage language)
|
void QmlCppEngine::setActiveEngine(DebuggerLanguage language)
|
||||||
@@ -130,7 +134,8 @@ void QmlCppEngine::setToolTipExpression(const QPoint & mousePos,
|
|||||||
d->m_activeEngine->setToolTipExpression(mousePos, editor, cursorPos);
|
d->m_activeEngine->setToolTipExpression(mousePos, editor, cursorPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlCppEngine::updateWatchData(const Internal::WatchData &data, const Internal::WatchUpdateFlags &flags)
|
void QmlCppEngine::updateWatchData(const Internal::WatchData &data,
|
||||||
|
const Internal::WatchUpdateFlags &flags)
|
||||||
{
|
{
|
||||||
d->m_activeEngine->updateWatchData(data, flags);
|
d->m_activeEngine->updateWatchData(data, flags);
|
||||||
}
|
}
|
||||||
@@ -235,7 +240,8 @@ void QmlCppEngine::attemptBreakpointSynchronization()
|
|||||||
|
|
||||||
bool QmlCppEngine::acceptsBreakpoint(const Internal::BreakpointData *br)
|
bool QmlCppEngine::acceptsBreakpoint(const Internal::BreakpointData *br)
|
||||||
{
|
{
|
||||||
return d->m_cppEngine->acceptsBreakpoint(br) || d->m_qmlEngine->acceptsBreakpoint(br);
|
return d->m_cppEngine->acceptsBreakpoint(br)
|
||||||
|
|| d->m_qmlEngine->acceptsBreakpoint(br);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlCppEngine::selectThread(int index)
|
void QmlCppEngine::selectThread(int index)
|
||||||
|
|||||||
@@ -22,9 +22,10 @@ public:
|
|||||||
|
|
||||||
void setActiveEngine(DebuggerLanguage language);
|
void setActiveEngine(DebuggerLanguage language);
|
||||||
|
|
||||||
virtual void setToolTipExpression(const QPoint & /* mousePos */,
|
virtual void setToolTipExpression(const QPoint &mousePos,
|
||||||
TextEditor::ITextEditor * /* editor */, int /* cursorPos */);
|
TextEditor::ITextEditor * editor, int cursorPos);
|
||||||
virtual void updateWatchData(const Internal::WatchData & /* data */, const Internal::WatchUpdateFlags &flags);
|
virtual void updateWatchData(const Internal::WatchData &data,
|
||||||
|
const Internal::WatchUpdateFlags &flags);
|
||||||
|
|
||||||
virtual void watchPoint(const QPoint &);
|
virtual void watchPoint(const QPoint &);
|
||||||
virtual void fetchMemory(Internal::MemoryViewAgent *, QObject *,
|
virtual void fetchMemory(Internal::MemoryViewAgent *, QObject *,
|
||||||
@@ -55,7 +56,8 @@ public:
|
|||||||
virtual bool acceptsBreakpoint(const Internal::BreakpointData *br);
|
virtual bool acceptsBreakpoint(const Internal::BreakpointData *br);
|
||||||
virtual void selectThread(int index);
|
virtual void selectThread(int index);
|
||||||
|
|
||||||
virtual void assignValueInDebugger(const Internal::WatchData *w, const QString &expr, const QVariant &value);
|
virtual void assignValueInDebugger(const Internal::WatchData *w,
|
||||||
|
const QString &expr, const QVariant &value);
|
||||||
|
|
||||||
QAbstractItemModel *commandModel() const;
|
QAbstractItemModel *commandModel() const;
|
||||||
QAbstractItemModel *modulesModel() const;
|
QAbstractItemModel *modulesModel() const;
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ enum {
|
|||||||
namespace Debugger {
|
namespace Debugger {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
QDataStream& operator>>(QDataStream& s, WatchData &data)
|
QDataStream &operator>>(QDataStream &s, WatchData &data)
|
||||||
{
|
{
|
||||||
data = WatchData();
|
data = WatchData();
|
||||||
QString value;
|
QString value;
|
||||||
@@ -100,7 +100,8 @@ QDataStream& operator>>(QDataStream& s, WatchData &data)
|
|||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|
||||||
struct QmlEnginePrivate {
|
struct QmlEnginePrivate
|
||||||
|
{
|
||||||
explicit QmlEnginePrivate(QmlEngine *q);
|
explicit QmlEnginePrivate(QmlEngine *q);
|
||||||
|
|
||||||
int m_ping;
|
int m_ping;
|
||||||
@@ -111,12 +112,12 @@ struct QmlEnginePrivate {
|
|||||||
bool m_hasShutdown;
|
bool m_hasShutdown;
|
||||||
};
|
};
|
||||||
|
|
||||||
QmlEnginePrivate::QmlEnginePrivate(QmlEngine *q) :
|
QmlEnginePrivate::QmlEnginePrivate(QmlEngine *q)
|
||||||
m_ping(0)
|
: m_ping(0)
|
||||||
, m_adapter(new QmlAdapter(q))
|
, m_adapter(new QmlAdapter(q))
|
||||||
, m_addedAdapterToObjectPool(false)
|
, m_addedAdapterToObjectPool(false)
|
||||||
, m_attachToRunningExternalApp(false)
|
, m_attachToRunningExternalApp(false)
|
||||||
, m_hasShutdown(false)
|
, m_hasShutdown(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -221,7 +222,7 @@ void QmlEngine::connectionError(QAbstractSocket::SocketError socketError)
|
|||||||
|
|
||||||
void QmlEngine::serviceConnectionError(const QString &serviceName)
|
void QmlEngine::serviceConnectionError(const QString &serviceName)
|
||||||
{
|
{
|
||||||
plugin()->showMessage(tr("QML Debugger: Could not connect to service '%1'.").arg(serviceName), StatusBar);
|
showMessage(tr("QML Debugger: Could not connect to service '%1'.").arg(serviceName), StatusBar);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlEngine::runEngine()
|
void QmlEngine::runEngine()
|
||||||
@@ -235,7 +236,7 @@ void QmlEngine::runEngine()
|
|||||||
}
|
}
|
||||||
|
|
||||||
d->m_adapter->beginConnection();
|
d->m_adapter->beginConnection();
|
||||||
plugin()->showMessage(tr("QML Debugger connecting..."), StatusBar);
|
showMessage(tr("QML Debugger connecting..."), StatusBar);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlEngine::handleRemoteSetupDone()
|
void QmlEngine::handleRemoteSetupDone()
|
||||||
@@ -274,11 +275,13 @@ void QmlEngine::shutdownEngineAsSlave()
|
|||||||
if (d->m_hasShutdown)
|
if (d->m_hasShutdown)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
disconnect(d->m_adapter, SIGNAL(connectionStartupFailed()), this, SLOT(connectionStartupFailed()));
|
disconnect(d->m_adapter, SIGNAL(connectionStartupFailed()),
|
||||||
|
this, SLOT(connectionStartupFailed()));
|
||||||
d->m_adapter->closeConnection();
|
d->m_adapter->closeConnection();
|
||||||
|
|
||||||
if (d->m_addedAdapterToObjectPool) {
|
if (d->m_addedAdapterToObjectPool) {
|
||||||
ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance();
|
ExtensionSystem::PluginManager *pluginManager =
|
||||||
|
ExtensionSystem::PluginManager::instance();
|
||||||
pluginManager->removeObject(d->m_adapter);
|
pluginManager->removeObject(d->m_adapter);
|
||||||
pluginManager->removeObject(this);
|
pluginManager->removeObject(this);
|
||||||
}
|
}
|
||||||
@@ -290,7 +293,8 @@ void QmlEngine::shutdownEngineAsSlave()
|
|||||||
} else {
|
} else {
|
||||||
if (d->m_applicationLauncher.isRunning()) {
|
if (d->m_applicationLauncher.isRunning()) {
|
||||||
// should only happen if engine is ill
|
// should only happen if engine is ill
|
||||||
disconnect(&d->m_applicationLauncher, SIGNAL(processExited(int)), this, SLOT(disconnected()));
|
disconnect(&d->m_applicationLauncher, SIGNAL(processExited(int)),
|
||||||
|
this, SLOT(disconnected()));
|
||||||
d->m_applicationLauncher.stop();
|
d->m_applicationLauncher.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -307,7 +311,8 @@ void QmlEngine::shutdownInferior()
|
|||||||
if (!d->m_applicationLauncher.isRunning()) {
|
if (!d->m_applicationLauncher.isRunning()) {
|
||||||
showMessage(tr("Trying to stop while process is no longer running."), LogError);
|
showMessage(tr("Trying to stop while process is no longer running."), LogError);
|
||||||
} else {
|
} else {
|
||||||
disconnect(&d->m_applicationLauncher, SIGNAL(processExited(int)), this, SLOT(disconnected()));
|
disconnect(&d->m_applicationLauncher, SIGNAL(processExited(int)),
|
||||||
|
this, SLOT(disconnected()));
|
||||||
if (!d->m_attachToRunningExternalApp)
|
if (!d->m_attachToRunningExternalApp)
|
||||||
d->m_applicationLauncher.stop();
|
d->m_applicationLauncher.stop();
|
||||||
}
|
}
|
||||||
@@ -329,10 +334,13 @@ void QmlEngine::setupEngine()
|
|||||||
d->m_adapter->setMaxConnectionAttempts(MaxConnectionAttempts);
|
d->m_adapter->setMaxConnectionAttempts(MaxConnectionAttempts);
|
||||||
d->m_adapter->setConnectionAttemptInterval(ConnectionAttemptDefaultInterval);
|
d->m_adapter->setConnectionAttemptInterval(ConnectionAttemptDefaultInterval);
|
||||||
connect(d->m_adapter, SIGNAL(connectionError(QAbstractSocket::SocketError)),
|
connect(d->m_adapter, SIGNAL(connectionError(QAbstractSocket::SocketError)),
|
||||||
SLOT(connectionError(QAbstractSocket::SocketError)));
|
SLOT(connectionError(QAbstractSocket::SocketError)));
|
||||||
connect(d->m_adapter, SIGNAL(serviceConnectionError(QString)), SLOT(serviceConnectionError(QString)));
|
connect(d->m_adapter, SIGNAL(serviceConnectionError(QString)),
|
||||||
connect(d->m_adapter, SIGNAL(connected()), SLOT(connectionEstablished()));
|
SLOT(serviceConnectionError(QString)));
|
||||||
connect(d->m_adapter, SIGNAL(connectionStartupFailed()), SLOT(connectionStartupFailed()));
|
connect(d->m_adapter, SIGNAL(connected()),
|
||||||
|
SLOT(connectionEstablished()));
|
||||||
|
connect(d->m_adapter, SIGNAL(connectionStartupFailed()),
|
||||||
|
SLOT(connectionStartupFailed()));
|
||||||
|
|
||||||
notifyEngineSetupOk();
|
notifyEngineSetupOk();
|
||||||
}
|
}
|
||||||
@@ -454,19 +462,18 @@ void QmlEngine::attemptBreakpointSynchronization()
|
|||||||
breakList << qMakePair(processedFilename, data->lineNumber);
|
breakList << qMakePair(processedFilename, data->lineNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
QByteArray reply;
|
QByteArray reply;
|
||||||
QDataStream rs(&reply, QIODevice::WriteOnly);
|
QDataStream rs(&reply, QIODevice::WriteOnly);
|
||||||
rs << QByteArray("BREAKPOINTS");
|
rs << QByteArray("BREAKPOINTS");
|
||||||
rs << breakList;
|
rs << breakList;
|
||||||
//qDebug() << Q_FUNC_INFO << breakList;
|
//qDebug() << Q_FUNC_INFO << breakList;
|
||||||
sendMessage(reply);
|
sendMessage(reply);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QmlEngine::acceptsBreakpoint(const Internal::BreakpointData *br)
|
bool QmlEngine::acceptsBreakpoint(const Internal::BreakpointData *br)
|
||||||
{
|
{
|
||||||
return (br->fileName.endsWith(QLatin1String("qml")) || br->fileName.endsWith(QLatin1String("js")));
|
return br->fileName.endsWith(QLatin1String("qml"))
|
||||||
|
|| br->fileName.endsWith(QLatin1String("js"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlEngine::loadSymbols(const QString &moduleName)
|
void QmlEngine::loadSymbols(const QString &moduleName)
|
||||||
@@ -493,9 +500,11 @@ void QmlEngine::requestModuleSymbols(const QString &moduleName)
|
|||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void QmlEngine::setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos)
|
void QmlEngine::setToolTipExpression(const QPoint &mousePos,
|
||||||
|
TextEditor::ITextEditor *editor, int cursorPos)
|
||||||
{
|
{
|
||||||
// this is processed by QML inspector, which has deps to qml js editor. Makes life easier.
|
// This is processed by QML inspector, which has dependencies to
|
||||||
|
// the qml js editor. Makes life easier.
|
||||||
emit tooltipRequested(mousePos, editor, cursorPos);
|
emit tooltipRequested(mousePos, editor, cursorPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -506,7 +515,7 @@ void QmlEngine::setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEd
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void QmlEngine::assignValueInDebugger(const Internal::WatchData *,
|
void QmlEngine::assignValueInDebugger(const Internal::WatchData *,
|
||||||
const QString &expression, const QVariant &valueV)
|
const QString &expression, const QVariant &valueV)
|
||||||
{
|
{
|
||||||
QRegExp inObject("@([0-9a-fA-F]+)->(.+)");
|
QRegExp inObject("@([0-9a-fA-F]+)->(.+)");
|
||||||
if (inObject.exactMatch(expression)) {
|
if (inObject.exactMatch(expression)) {
|
||||||
@@ -523,7 +532,8 @@ void QmlEngine::assignValueInDebugger(const Internal::WatchData *,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlEngine::updateWatchData(const Internal::WatchData &data, const Internal::WatchUpdateFlags &)
|
void QmlEngine::updateWatchData(const Internal::WatchData &data,
|
||||||
|
const Internal::WatchUpdateFlags &)
|
||||||
{
|
{
|
||||||
// qDebug() << "UPDATE WATCH DATA" << data.toString();
|
// qDebug() << "UPDATE WATCH DATA" << data.toString();
|
||||||
//watchHandler()->rebuildModel();
|
//watchHandler()->rebuildModel();
|
||||||
@@ -748,7 +758,6 @@ void QmlEngine::messageReceived(const QByteArray &message)
|
|||||||
} else {
|
} else {
|
||||||
qDebug() << Q_FUNC_INFO << "Unknown command: " << command;
|
qDebug() << Q_FUNC_INFO << "Unknown command: " << command;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlEngine::disconnected()
|
void QmlEngine::disconnected()
|
||||||
@@ -768,26 +777,19 @@ void QmlEngine::executeDebuggerCommand(const QString& command)
|
|||||||
|
|
||||||
bool QmlEngine::isShadowBuildProject() const
|
bool QmlEngine::isShadowBuildProject() const
|
||||||
{
|
{
|
||||||
if (!startParameters().projectBuildDir.isEmpty()
|
return !startParameters().projectBuildDir.isEmpty()
|
||||||
&& (startParameters().projectDir != startParameters().projectBuildDir))
|
&& startParameters().projectDir != startParameters().projectBuildDir;
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString QmlEngine::qmlImportPath() const
|
QString QmlEngine::qmlImportPath() const
|
||||||
{
|
{
|
||||||
QString result;
|
|
||||||
const QString qmlImportPathPrefix("QML_IMPORT_PATH=");
|
const QString qmlImportPathPrefix("QML_IMPORT_PATH=");
|
||||||
QStringList env = startParameters().environment;
|
QStringList env = startParameters().environment;
|
||||||
foreach(const QString &envStr, env) {
|
foreach (const QString &envStr, env) {
|
||||||
if (envStr.startsWith(qmlImportPathPrefix)) {
|
if (envStr.startsWith(qmlImportPathPrefix))
|
||||||
result = envStr.mid(qmlImportPathPrefix.length());
|
return envStr.mid(qmlImportPathPrefix.length());
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return result;
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString QmlEngine::toShadowBuildFilename(const QString &filename) const
|
QString QmlEngine::toShadowBuildFilename(const QString &filename) const
|
||||||
@@ -803,7 +805,8 @@ QString QmlEngine::toShadowBuildFilename(const QString &filename) const
|
|||||||
return newFilename;
|
return newFilename;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString QmlEngine::mangleFilenamePaths(const QString &filename, const QString &oldBasePath, const QString &newBasePath) const
|
QString QmlEngine::mangleFilenamePaths(const QString &filename,
|
||||||
|
const QString &oldBasePath, const QString &newBasePath) const
|
||||||
{
|
{
|
||||||
QDir oldBaseDir(oldBasePath);
|
QDir oldBaseDir(oldBasePath);
|
||||||
QDir newBaseDir(newBasePath);
|
QDir newBaseDir(newBasePath);
|
||||||
|
|||||||
@@ -80,7 +80,8 @@ private:
|
|||||||
void shutdownInferior();
|
void shutdownInferior();
|
||||||
void shutdownEngine();
|
void shutdownEngine();
|
||||||
|
|
||||||
void setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos);
|
void setToolTipExpression(const QPoint &mousePos,
|
||||||
|
TextEditor::ITextEditor *editor, int cursorPos);
|
||||||
|
|
||||||
void continueInferior();
|
void continueInferior();
|
||||||
void interruptInferior();
|
void interruptInferior();
|
||||||
@@ -105,14 +106,16 @@ private:
|
|||||||
void reloadFullStack() {}
|
void reloadFullStack() {}
|
||||||
|
|
||||||
bool supportsThreads() const { return false; }
|
bool supportsThreads() const { return false; }
|
||||||
void updateWatchData(const Internal::WatchData &data, const Internal::WatchUpdateFlags &flags);
|
void updateWatchData(const Internal::WatchData &data,
|
||||||
void executeDebuggerCommand(const QString& command);
|
const Internal::WatchUpdateFlags &flags);
|
||||||
|
void executeDebuggerCommand(const QString &command);
|
||||||
|
|
||||||
unsigned int debuggerCapabilities() const;
|
unsigned int debuggerCapabilities() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void sendMessage(const QByteArray &msg);
|
void sendMessage(const QByteArray &msg);
|
||||||
void tooltipRequested(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos);
|
void tooltipRequested(const QPoint &mousePos,
|
||||||
|
TextEditor::ITextEditor *editor, int cursorPos);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void connectionEstablished();
|
void connectionEstablished();
|
||||||
@@ -126,7 +129,8 @@ private:
|
|||||||
|
|
||||||
bool isShadowBuildProject() const;
|
bool isShadowBuildProject() const;
|
||||||
QString fromShadowBuildFilename(const QString &filename) const;
|
QString fromShadowBuildFilename(const QString &filename) const;
|
||||||
QString mangleFilenamePaths(const QString &filename, const QString &oldBasePath, const QString &newBasePath) const;
|
QString mangleFilenamePaths(const QString &filename,
|
||||||
|
const QString &oldBasePath, const QString &newBasePath) const;
|
||||||
QString toShadowBuildFilename(const QString &filename) const;
|
QString toShadowBuildFilename(const QString &filename) const;
|
||||||
QString qmlImportPath() const;
|
QString qmlImportPath() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user