Chromium Code Reviews| Index: runtime/vm/debugger.cc |
| =================================================================== |
| --- runtime/vm/debugger.cc (revision 8912) |
| +++ runtime/vm/debugger.cc (working copy) |
| @@ -1284,7 +1284,8 @@ |
| } |
| } |
| - if (func_to_instrument.raw() != currently_instrumented_func.raw()) { |
| + if (func_to_instrument.IsNull() || |
| + (func_to_instrument.raw() != currently_instrumented_func.raw())) { |
| last_bpt_line_ = -1; |
| RemoveInternalBreakpoints(); // *bpt is now invalid. |
| if (!func_to_instrument.IsNull()) { |