forked from qt-creator/qt-creator
QmlObserver: breakpoint list is shared between engines
Reviewed by: Kai Koehne, Andre Poenitz
This commit is contained in:
@@ -222,6 +222,11 @@ void QmlCppEngine::attemptBreakpointSynchronization()
|
||||
static_cast<DebuggerEngine*>(d->m_qmlEngine)->attemptBreakpointSynchronization();
|
||||
}
|
||||
|
||||
bool QmlCppEngine::acceptsBreakpoint(const Internal::BreakpointData *br)
|
||||
{
|
||||
return d->m_cppEngine->acceptsBreakpoint(br) || d->m_qmlEngine->acceptsBreakpoint(br);
|
||||
}
|
||||
|
||||
void QmlCppEngine::selectThread(int index)
|
||||
{
|
||||
d->m_cppEngine->selectThread(index);
|
||||
|
||||
@@ -52,6 +52,7 @@ public:
|
||||
virtual void updateAll();
|
||||
|
||||
virtual void attemptBreakpointSynchronization();
|
||||
virtual bool acceptsBreakpoint(const Internal::BreakpointData *br);
|
||||
virtual void selectThread(int index);
|
||||
|
||||
virtual void assignValueInDebugger(const Internal::WatchData *w, const QString &expr, const QVariant &value);
|
||||
|
||||
@@ -460,6 +460,11 @@ void QmlEngine::attemptBreakpointSynchronization()
|
||||
}
|
||||
}
|
||||
|
||||
bool QmlEngine::acceptsBreakpoint(const Internal::BreakpointData *br)
|
||||
{
|
||||
return (br->fileName.endsWith(QLatin1String("qml")) || br->fileName.endsWith(QLatin1String("js")));
|
||||
}
|
||||
|
||||
void QmlEngine::loadSymbols(const QString &moduleName)
|
||||
{
|
||||
Q_UNUSED(moduleName)
|
||||
|
||||
@@ -93,6 +93,7 @@ private:
|
||||
void selectThread(int index);
|
||||
|
||||
void attemptBreakpointSynchronization();
|
||||
bool acceptsBreakpoint(const Internal::BreakpointData *br);
|
||||
|
||||
void assignValueInDebugger(const Internal::WatchData *w, const QString &expr, const QVariant &value);
|
||||
void loadSymbols(const QString &moduleName);
|
||||
|
||||
Reference in New Issue
Block a user