forked from qt-creator/qt-creator
Debugger: split fixCppExpression into some common and some cdb part
Task-number: QTCREATORBUG-8446 Change-Id: I79abc7f75779db15bd8700c085b9cd57411bb2e1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -1166,7 +1166,10 @@ public slots:
|
||||
int line, column;
|
||||
exp = cppExpressionAt(textEditor, tc.position(), &line, &column);
|
||||
}
|
||||
exp = fixCppExpression(exp);
|
||||
if (currentEngine()->hasCapability(WatchComplexExpressionsCapability))
|
||||
exp = removeObviousSideEffects(exp);
|
||||
else
|
||||
exp = fixCppExpression(exp);
|
||||
if (exp.isEmpty())
|
||||
return;
|
||||
currentEngine()->watchHandler()->watchVariable(exp);
|
||||
|
||||
Reference in New Issue
Block a user