Debugger: Use gdb's tooltip expression fixup for CDB and editor.

Factor out to watchutils.

Change-Id: I8cf316be819d765dcea964ac6405bfa9b075de59
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Friedemann Kleint
2012-08-30 18:03:34 +02:00
committed by hjk
parent 5fdb9f0df9
commit e67e58378d
5 changed files with 47 additions and 38 deletions

View File

@@ -1140,6 +1140,7 @@ public slots:
int line, column;
exp = cppExpressionAt(textEditor, tc.position(), &line, &column);
}
exp = fixCppExpression(exp);
if (exp.isEmpty())
return;
currentEngine()->watchHandler()->watchExpression(exp);