summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengineagent_p.h
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-20 13:26:40 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-20 13:26:40 (GMT)
commitc171799d5d96360cffe9b8288f18859b5e2d51dd (patch)
tree5ed15d7e2f386d8badfa9792946f1b732df725e3 /src/script/api/qscriptengineagent_p.h
parenta363adb8974929b1b18e936cb0a7effa3c229f87 (diff)
downloadQt-c171799d5d96360cffe9b8288f18859b5e2d51dd.zip
Qt-c171799d5d96360cffe9b8288f18859b5e2d51dd.tar.gz
Qt-c171799d5d96360cffe9b8288f18859b5e2d51dd.tar.bz2
set the current frame when getting callbacks in JSC Debugger
If the debugger stops execution, we want the frame pointer to be in sync (so we get the full backtrace).
Diffstat (limited to 'src/script/api/qscriptengineagent_p.h')
-rw-r--r--src/script/api/qscriptengineagent_p.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/script/api/qscriptengineagent_p.h b/src/script/api/qscriptengineagent_p.h
index 183a02c..64befc1 100644
--- a/src/script/api/qscriptengineagent_p.h
+++ b/src/script/api/qscriptengineagent_p.h
@@ -56,8 +56,6 @@
#include <QtCore/qobjectdefs.h>
#include "Debugger.h"
#include "qscriptengineagent.h"
-#include "qscriptengine.h"
-#include "qscriptengine_p.h"
#include "CallFrame.h"
#include "SourceCode.h"
@@ -66,7 +64,7 @@
QT_BEGIN_NAMESPACE
-class QScriptEngine;
+class QScriptEnginePrivate;
class QScriptEngineAgent;
class Q_SCRIPT_EXPORT QScriptEngineAgentPrivate : public JSC::Debugger
@@ -132,14 +130,7 @@ public:
};
virtual void functionExit(const JSC::JSValue& returnValue, intptr_t sourceID);
//others
- virtual void didReachBreakpoint(const JSC::DebuggerCallFrame& frame, intptr_t sourceID, int lineno, int column)
- {
- Q_UNUSED(frame);
- QList<QVariant> args;
- args << qint64(sourceID) << lineno << column;
- if (q_ptr->supportsExtension(QScriptEngineAgent::DebuggerInvocationRequest))
- q_ptr->extension(QScriptEngineAgent::DebuggerInvocationRequest, args);
- };
+ virtual void didReachBreakpoint(const JSC::DebuggerCallFrame& frame, intptr_t sourceID, int lineno, int column);
virtual void evaluateStart(intptr_t sourceID)
{
@@ -147,7 +138,7 @@ public:
}
virtual void evaluateStop(const JSC::JSValue& returnValue, intptr_t sourceID);
- QScriptEngine *engine;
+ QScriptEnginePrivate *engine;
QScriptEngineAgent *q_ptr;
};