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

@@ -466,7 +466,7 @@ bool CdbEngine::setToolTipExpression(const QPoint &mousePos,
int line;
int column;
DebuggerToolTipContext context = contextIn;
QString exp = cppExpressionAt(editor, context.position, &line, &column, &context.function);
QString exp = fixCppExpression(cppExpressionAt(editor, context.position, &line, &column, &context.function));
// Are we in the current stack frame
if (context.function.isEmpty() || exp.isEmpty() || context.function != stackHandler()->currentFrame().function)
return false;