aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Fries <David@Fries.net>2015-11-11 14:59:02 -0600
committerDavid Fries <david@fries.net>2015-12-03 15:19:23 +0000
commitaba62280aee9f086fa2dce6bd6a3a40f7276b27e (patch)
tree72cd2ed6f8d46455b1341195b1ad12c5e3a3ec4a
parent5345e05f26f6e62a38bbb3ee5901b23bfc4dd2fb (diff)
Debugger: Fix compile for g++ 4.7.2
src/plugins/debugger/gdb/gdbengine.cpp: In lambda function: src/plugins/debugger/gdb/gdbengine.cpp:3224:30: error: the value of 'this' is not usable in a constant expression src/plugins/debugger/gdb/gdbengine.cpp:3210:61: note: 'this' was not declared 'constexpr' src/plugins/debugger/gdb/gdbengine.cpp:3231:13: error: 'incmd' was not declared in this scope This reverts one code block of commit 2b16b97f19a93e9dc9b1465e196be1de34cdd4fa Change-Id: Iab7f5ec84e59d9f280e0405cdd82705c14bb2064 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r--src/plugins/debugger/gdb/gdbengine.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 1dbe494d46..8ac6c6ce5b 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -3218,9 +3218,10 @@ void GdbEngine::loadAdditionalQmlStack()
return;
}
// Call the debug function of QML with the context address to obtain the QML stack trace.
- runCommand({"-data-evaluate-expression \"qt_v4StackTrace((QV4::ExecutionContext *)0x"
- + QByteArray::number(contextAddress, 16) + ")\"",
- NoFlags, CB(handleQmlStackTrace)});
+ DebuggerCommand cmd("-data-evaluate-expression \"qt_v4StackTrace((QV4::ExecutionContext *)0x"
+ + QByteArray::number(contextAddress, 16) + ")\"");
+ cmd.callback = CB(handleQmlStackTrace);
+ runCommand(cmd);
};
runCommand(cmd);
}