mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2988,
|
||||||
/**/
|
/**/
|
||||||
2987,
|
2987,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -1801,6 +1801,7 @@ typedef enum {
|
|||||||
CT_DEBUG // use df_instr_debug, overrules CT_PROFILE
|
CT_DEBUG // use df_instr_debug, overrules CT_PROFILE
|
||||||
} compiletype_T;
|
} compiletype_T;
|
||||||
|
|
||||||
|
// Keep in sync with INSTRUCTIONS().
|
||||||
#ifdef FEAT_PROFILE
|
#ifdef FEAT_PROFILE
|
||||||
# define COMPILE_TYPE(ufunc) (debug_break_level > 0 ? CT_DEBUG : do_profiling == PROF_YES && (ufunc)->uf_profiling ? CT_PROFILE : CT_NONE)
|
# define COMPILE_TYPE(ufunc) (debug_break_level > 0 ? CT_DEBUG : do_profiling == PROF_YES && (ufunc)->uf_profiling ? CT_PROFILE : CT_NONE)
|
||||||
#else
|
#else
|
||||||
|
13
src/vim9.h
13
src/vim9.h
@@ -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.
|
// Used for "lnum" when a range is to be taken from the stack and "!" is used.
|
||||||
#define LNUM_VARIABLE_RANGE_ABOVE -888
|
#define LNUM_VARIABLE_RANGE_ABOVE -888
|
||||||
|
|
||||||
|
// Keep in sync with COMPILE_TYPE()
|
||||||
#ifdef FEAT_PROFILE
|
#ifdef FEAT_PROFILE
|
||||||
# define INSTRUCTIONS(dfunc) \
|
# define INSTRUCTIONS(dfunc) \
|
||||||
((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \
|
(debug_break_level > 0 \
|
||||||
? (dfunc)->df_instr_prof : (dfunc)->df_instr)
|
? (dfunc)->df_instr_debug \
|
||||||
|
: ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \
|
||||||
|
? (dfunc)->df_instr_prof \
|
||||||
|
: (dfunc)->df_instr))
|
||||||
#else
|
#else
|
||||||
# define INSTRUCTIONS(dfunc) ((dfunc)->df_instr)
|
# define INSTRUCTIONS(dfunc) \
|
||||||
|
(debug_break_level > 0 \
|
||||||
|
? (dfunc)->df_instr_debug \
|
||||||
|
: (dfunc)->df_instr)
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user