mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.3395: Vim9: expression breakpoint not checked in :def function
Problem: Vim9: expression breakpoint not checked in :def function. Solution: Always compile a function for debugging if there is an expression breakpoint. (closes #8803)
This commit is contained in:
11
src/vim.h
11
src/vim.h
@@ -1808,9 +1808,16 @@ typedef enum {
|
||||
|
||||
// Keep in sync with INSTRUCTIONS().
|
||||
#ifdef FEAT_PROFILE
|
||||
# define COMPILE_TYPE(ufunc) (debug_break_level > 0 || ufunc->uf_has_breakpoint ? CT_DEBUG : do_profiling == PROF_YES && (ufunc)->uf_profiling ? CT_PROFILE : CT_NONE)
|
||||
# define COMPILE_TYPE(ufunc) (debug_break_level > 0 \
|
||||
|| may_break_in_function(ufunc) \
|
||||
? CT_DEBUG \
|
||||
: do_profiling == PROF_YES && (ufunc)->uf_profiling \
|
||||
? CT_PROFILE : CT_NONE)
|
||||
#else
|
||||
# define COMPILE_TYPE(ufunc) debug_break_level > 0 || ufunc->uf_has_breakpoint ? CT_DEBUG : CT_NONE
|
||||
# define COMPILE_TYPE(ufunc) debug_break_level > 0 \
|
||||
|| may_break_in_function(ufunc) \
|
||||
? CT_DEBUG \
|
||||
: CT_NONE
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user