comparison src/vim9execute.c @ 24980:2cb78583fada v8.2.3027

patch 8.2.3027: Vim9: breakpoint in compiled function not always checked Commit: https://github.com/vim/vim/commit/2ac4b2536a40e5cd75b4ff7a3d44a282d2f4f008 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 20 20:09:42 2021 +0200 patch 8.2.3027: Vim9: breakpoint in compiled function not always checked Problem: Vim9: breakpoint in compiled function not always checked. Solution: Check for breakpoint when calling compiled function from compiled function.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Jun 2021 20:15:02 +0200
parents 2818b8108d92
children 71b1e2ef0069
comparison
equal deleted inserted replaced
24979:6ed6f1eef437 24980:2cb78583fada
226 && compile_def_function(ufunc, FALSE, COMPILE_TYPE(ufunc), NULL) 226 && compile_def_function(ufunc, FALSE, COMPILE_TYPE(ufunc), NULL)
227 == FAIL) 227 == FAIL)
228 return FAIL; 228 return FAIL;
229 } 229 }
230 #endif 230 #endif
231
232 // Update uf_has_breakpoint if needed.
233 update_has_breakpoint(ufunc);
231 234
232 // When debugging and using "cont" switches to the not-debugged 235 // When debugging and using "cont" switches to the not-debugged
233 // instructions, may need to still compile them. 236 // instructions, may need to still compile them.
234 if ((func_needs_compiling(ufunc, COMPILE_TYPE(ufunc)) 237 if ((func_needs_compiling(ufunc, COMPILE_TYPE(ufunc))
235 && compile_def_function(ufunc, FALSE, COMPILE_TYPE(ufunc), NULL) 238 && compile_def_function(ufunc, FALSE, COMPILE_TYPE(ufunc), NULL)