diff options
| author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-16 18:35:29 +0200 |
|---|---|---|
| committer | Lars Knoll <lars.knoll@digia.com> | 2013-08-16 19:22:24 +0200 |
| commit | a44f92d925a1b0f5fa205706a26d81f07de75c33 (patch) | |
| tree | 16345975d3058ca04b769b2598f58fa6de1f6f0d /src/qml/jsruntime/qv4debugging.cpp | |
| parent | 0f0e7443aea0d9a203b380bec708c485a01450e0 (diff) | |
Get rid of the functions list in QV4::ExecutionEngine
Change-Id: I97067dbb2819936a1b2029c9f63f0627cb6b8bd2
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4debugging.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4debugging.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4debugging.cpp b/src/qml/jsruntime/qv4debugging.cpp index 3bb031116e..5534305068 100644 --- a/src/qml/jsruntime/qv4debugging.cpp +++ b/src/qml/jsruntime/qv4debugging.cpp @@ -185,9 +185,11 @@ void Debugger::pauseAndWait() void Debugger::applyPendingBreakPoints() { - foreach (Function *function, _engine->functions) { - m_pendingBreakPointsToAdd.applyToFunction(function, /*removeBreakPoints*/false); - m_pendingBreakPointsToRemove.applyToFunction(function, /*removeBreakPoints*/true); + foreach (QV4::CompiledData::CompilationUnit *unit, _engine->compilationUnits) { + foreach (Function *function, unit->runtimeFunctions) { + m_pendingBreakPointsToAdd.applyToFunction(function, /*removeBreakPoints*/false); + m_pendingBreakPointsToRemove.applyToFunction(function, /*removeBreakPoints*/true); + } } for (BreakPoints::ConstIterator it = m_pendingBreakPointsToAdd.constBegin(), |
