aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4debugging_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4debugging_p.h')
-rw-r--r--src/qml/jsruntime/qv4debugging_p.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4debugging_p.h b/src/qml/jsruntime/qv4debugging_p.h
index b6f39d86ba..98b549995e 100644
--- a/src/qml/jsruntime/qv4debugging_p.h
+++ b/src/qml/jsruntime/qv4debugging_p.h
@@ -181,9 +181,9 @@ private:
// requires lock to be held
void setTemporaryBreakPointOnNextLine();
// requires lock to be held
- void clearTemporaryBreakPoint();
+ void clearTemporaryBreakPoints();
// requires lock to be held
- bool temporaryBreakPointInFunction() const;
+ bool temporaryBreakPointInFunction(ExecutionContext *context) const;
void applyPendingBreakPoints();
static void setBreakOnInstruction(Function *function, qptrdiff codeOffset, bool onoff);
@@ -220,11 +220,14 @@ private:
struct TemporaryBreakPoint {
Function *function;
- qptrdiff codeOffset;
- TemporaryBreakPoint(Function *function = 0, qptrdiff codeOffset = 0)
- : function(function), codeOffset(codeOffset)
+ QVector<qptrdiff> codeOffsets;
+ ExecutionContext *context;
+ TemporaryBreakPoint(): function(0), context(0) {}
+ TemporaryBreakPoint(Function *function, ExecutionContext *context)
+ : function(function)
+ , context(context)
{}
- } m_temporaryBreakPoint;
+ } m_temporaryBreakPoints;
bool m_breakOnThrow;