diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-07-24 10:29:04 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-26 11:53:42 +0200 |
commit | 07860794da5863610f38295c9d517fc457c5de95 (patch) | |
tree | 1ea8a4535985b90e8be80857ae086ee10eb15cb2 /tools | |
parent | 993bc84f49b4922480f6ec566f31c24465f0e005 (diff) |
Initial support for debugging in the v4 interpreter
This adds breakpoint support to the Debugger, a helper function in the engine
for enabling debugging (which will switch from JIT to the interpreter) and a
DebuggingAgent interface, for use by v4 clients.
Change-Id: I78e17a6cbe7196b0dfe4ee157fc028532131caa3
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/v4/main.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp index cc1dc71b60..558055e677 100644 --- a/tools/v4/main.cpp +++ b/tools/v4/main.cpp @@ -43,7 +43,6 @@ # include "private/qv4_llvm_p.h" #endif // QMLJS_WITH_LLVM -#include "private/qv4debugging_p.h" #include "private/qv4object_p.h" #include "private/qv4runtime_p.h" #include "private/qv4functionobject_p.h" @@ -287,17 +286,9 @@ int main(int argc, char *argv[]) #ifdef QMLJS_WITH_LLVM QQmlJS::LLVMOutputType fileType = QQmlJS::LLVMOutputObject; #endif // QMLJS_WITH_LLVM - bool enableDebugging = false; bool runAsQml = false; if (!args.isEmpty()) { - if (args.first() == QLatin1String("-d") || args.first() == QLatin1String("--debug")) { - enableDebugging = true; - args.removeFirst(); - } - } - - if (!args.isEmpty()) { if (args.first() == QLatin1String("--jit")) { mode = use_masm; args.removeFirst(); @@ -375,11 +366,6 @@ int main(int argc, char *argv[]) QV4::ExecutionEngine vm(iSelFactory); - QScopedPointer<QQmlJS::Debugging::Debugger> debugger; - if (enableDebugging) - debugger.reset(new QQmlJS::Debugging::Debugger(&vm)); - vm.debugger = debugger.data(); - QV4::ExecutionContext *ctx = vm.rootContext; QV4::Object *globalObject = vm.globalObject; |