Debugger: Allow breakpoints inside lambdas.

When the cdbengine is using the codemodel breakpoint correction.

Change-Id: I70efa3119ca36b4ffd658425132f3fdff3d3eecf
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
David Schulz
2014-05-14 10:40:08 +02:00
parent 4a48bcbf0c
commit 8d587fa816

View File

@@ -128,8 +128,11 @@ bool FindCdbBreakpoint::visit(DoStatementAST *ast)
bool FindCdbBreakpoint::visit(ExpressionStatementAST *ast)
{
if (ast->expression)
foundLine(ast->semicolon_token);
if (ast->expression) {
accept(ast->expression);
if (m_breakpointLine == NO_LINE_FOUND)
foundLine(ast->semicolon_token);
}
return false;
}