forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user