diff options
author | Joel Nordell <joel.nordell@chloridepower.com> | 2009-06-17 13:26:41 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-17 13:44:46 (GMT) |
commit | 5af2e06cb543bd27450c29a1fca8686413f1cceb (patch) | |
tree | cb0a085c640d30813f58b3e43acfdf81396ac0f7 /src/scripttools/debugging/qscriptdebuggerbackend_p_p.h | |
parent | 30d6ac5feeb43b32eccc72595fe9a2c89d0f5c1e (diff) | |
download | Qt-5af2e06cb543bd27450c29a1fca8686413f1cceb.zip Qt-5af2e06cb543bd27450c29a1fca8686413f1cceb.tar.gz Qt-5af2e06cb543bd27450c29a1fca8686413f1cceb.tar.bz2 |
fix crash when detach()ing a debugger and then evaluating script print() function
Merge-request: 554
Reviewed-by: Kent Hansen <khansen@trolltech.com>
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggerbackend_p_p.h')
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggerbackend_p_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerbackend_p_p.h b/src/scripttools/debugging/qscriptdebuggerbackend_p_p.h index de18304..a356762 100644 --- a/src/scripttools/debugging/qscriptdebuggerbackend_p_p.h +++ b/src/scripttools/debugging/qscriptdebuggerbackend_p_p.h @@ -57,6 +57,7 @@ #include <QtCore/qhash.h> #include <QtCore/qlist.h> +#include <QtScript/qscriptvalue.h> #include "qscriptdebuggerbackend_p.h" @@ -66,7 +67,6 @@ class QEvent; class QString; class QScriptContext; class QScriptEngine; -class QScriptValue; class QScriptValueIterator; class QScriptObjectSnapshot; class QScriptDebuggerAgent; @@ -126,6 +126,10 @@ public: QObject *eventReceiver; QScriptDebuggerBackend *q_ptr; + + QScriptValue origTraceFunction; + QScriptValue origFileNameFunction; + QScriptValue origLineNumberFunction; }; QT_END_NAMESPACE |