forked from qt-creator/qt-creator
Debugger: Fix assignment to QString etc with LLDB
Task-number: QTCREATORBUG-21353 Change-Id: Ie3655738c249240d9fbf17e054fc8f79a284efd4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -705,12 +705,14 @@ void LldbEngine::fetchStack(int limit)
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
void LldbEngine::assignValueInDebugger(WatchItem *,
|
||||
void LldbEngine::assignValueInDebugger(WatchItem *item,
|
||||
const QString &expression, const QVariant &value)
|
||||
{
|
||||
DebuggerCommand cmd("assignValue");
|
||||
cmd.arg("exp", toHex(expression));
|
||||
cmd.arg("expr", toHex(expression));
|
||||
cmd.arg("value", toHex(value.toString()));
|
||||
cmd.arg("type", toHex(item->type));
|
||||
cmd.arg("simpleType", isIntOrFloatType(item->type));
|
||||
cmd.callback = [this](const DebuggerResponse &) { updateLocals(); };
|
||||
runCommand(cmd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user