1
0
forked from aniani/vim

patch 8.2.2988: Vim9: debugger test fails

Problem:    Vim9: debugger test fails.
Solution:   Get the debugger instructions when needed.
This commit is contained in:
Bram Moolenaar
2021-06-13 15:16:01 +02:00
parent 6d1792d408
commit c3a27bbd53
3 changed files with 13 additions and 3 deletions

View File

@@ -493,10 +493,17 @@ extern garray_T def_functions;
// Used for "lnum" when a range is to be taken from the stack and "!" is used.
#define LNUM_VARIABLE_RANGE_ABOVE -888
// Keep in sync with COMPILE_TYPE()
#ifdef FEAT_PROFILE
# define INSTRUCTIONS(dfunc) \
((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \
? (dfunc)->df_instr_prof : (dfunc)->df_instr)
(debug_break_level > 0 \
? (dfunc)->df_instr_debug \
: ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \
? (dfunc)->df_instr_prof \
: (dfunc)->df_instr))
#else
# define INSTRUCTIONS(dfunc) ((dfunc)->df_instr)
# define INSTRUCTIONS(dfunc) \
(debug_break_level > 0 \
? (dfunc)->df_instr_debug \
: (dfunc)->df_instr)
#endif