Chromium Code Reviews| Index: runtime/vm/debugger.cc |
| =================================================================== |
| --- runtime/vm/debugger.cc (revision 35649) |
| +++ runtime/vm/debugger.cc (working copy) |
| @@ -1545,6 +1545,11 @@ |
| if (best_fit_index >= 0) { |
| return desc.TokenPos(best_fit_index); |
| } |
| + // We didn't find a safe point in the given token range. Try and find |
| + // a safe point in the remaining source code of the function. |
| + if (last_token_pos < func.end_token_pos()) { |
|
Ivan Posva
2014/05/02 04:58:56
This looks a bit strange to me. First we start by
|
| + return ResolveBreakpointPos(func, last_token_pos, func.end_token_pos()); |
| + } |
| return -1; |
| } |