Mercurial > vim
comparison src/vim.h @ 25719:154663508d9b v8.2.3395
patch 8.2.3395: Vim9: expression breakpoint not checked in :def function
Commit: https://github.com/vim/vim/commit/26a4484da20039b61f18d3565a4b4339c4d1f7e3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 2 18:49:06 2021 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 Sep 2021 19:00:04 +0200 |
parents | 038eb6d9003a |
children | 16a7d1154be8 |
comparison
equal
deleted
inserted
replaced
25718:c3adc383b30f | 25719:154663508d9b |
---|---|
1806 CT_DEBUG // use df_instr_debug, overrules CT_PROFILE | 1806 CT_DEBUG // use df_instr_debug, overrules CT_PROFILE |
1807 } compiletype_T; | 1807 } compiletype_T; |
1808 | 1808 |
1809 // Keep in sync with INSTRUCTIONS(). | 1809 // Keep in sync with INSTRUCTIONS(). |
1810 #ifdef FEAT_PROFILE | 1810 #ifdef FEAT_PROFILE |
1811 # 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) | 1811 # define COMPILE_TYPE(ufunc) (debug_break_level > 0 \ |
1812 #else | 1812 || may_break_in_function(ufunc) \ |
1813 # define COMPILE_TYPE(ufunc) debug_break_level > 0 || ufunc->uf_has_breakpoint ? CT_DEBUG : CT_NONE | 1813 ? CT_DEBUG \ |
1814 : do_profiling == PROF_YES && (ufunc)->uf_profiling \ | |
1815 ? CT_PROFILE : CT_NONE) | |
1816 #else | |
1817 # define COMPILE_TYPE(ufunc) debug_break_level > 0 \ | |
1818 || may_break_in_function(ufunc) \ | |
1819 ? CT_DEBUG \ | |
1820 : CT_NONE | |
1814 #endif | 1821 #endif |
1815 | 1822 |
1816 /* | 1823 /* |
1817 * When compiling with 32 bit Perl time_t is 32 bits in the Perl code but 64 | 1824 * When compiling with 32 bit Perl time_t is 32 bits in the Perl code but 64 |
1818 * bits elsewhere. That causes memory corruption. Define time_T and use it | 1825 * bits elsewhere. That causes memory corruption. Define time_T and use it |