comparison src/vim9.h @ 25004:70f55a30f03c v8.2.3039

patch 8.2.3039: Vim9: breakpoint at a comment line does not work Commit: https://github.com/vim/vim/commit/8cec9273d2518f2a9abcbd326722a2eba38d2a13 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 23 20:20:53 2021 +0200 patch 8.2.3039: Vim9: breakpoint at a comment line does not work Problem: Vim9: breakpoint at a comment line does not work. Solution: Add the comment line number to the debug instruction. (closes #8429)
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Jun 2021 20:30:03 +0200
parents 71b1e2ef0069
children 7901481ea280
comparison
equal deleted inserted replaced
25003:264025157c93 25004:70f55a30f03c
166 ISN_CMDMOD_REV, // undo ISN_CMDMOD 166 ISN_CMDMOD_REV, // undo ISN_CMDMOD
167 167
168 ISN_PROF_START, // start a line for profiling 168 ISN_PROF_START, // start a line for profiling
169 ISN_PROF_END, // end a line for profiling 169 ISN_PROF_END, // end a line for profiling
170 170
171 ISN_DEBUG, // check for debug breakpoint, isn_arg.number is current 171 ISN_DEBUG, // check for debug breakpoint, uses isn_arg.debug
172 // number of local variables
173 172
174 ISN_UNPACK, // unpack list into items, uses isn_arg.unpack 173 ISN_UNPACK, // unpack list into items, uses isn_arg.unpack
175 ISN_SHUFFLE, // move item on stack up or down 174 ISN_SHUFFLE, // move item on stack up or down
176 ISN_DROP, // pop stack and discard value 175 ISN_DROP, // pop stack and discard value
177 176
388 // arguments to ISN_2BOOL 387 // arguments to ISN_2BOOL
389 typedef struct { 388 typedef struct {
390 int offset; 389 int offset;
391 int invert; 390 int invert;
392 } tobool_T; 391 } tobool_T;
392
393 // arguments to ISN_DEBUG
394 typedef struct {
395 varnumber_T dbg_var_names_len; // current number of local variables
396 int dbg_break_lnum; // first line to break after
397 } debug_T;
393 398
394 /* 399 /*
395 * Instruction 400 * Instruction
396 */ 401 */
397 struct isn_S { 402 struct isn_S {
437 cexpr_T cexpr; 442 cexpr_T cexpr;
438 isn_T *instr; 443 isn_T *instr;
439 tostring_T tostring; 444 tostring_T tostring;
440 tobool_T tobool; 445 tobool_T tobool;
441 getitem_T getitem; 446 getitem_T getitem;
447 debug_T debug;
442 } isn_arg; 448 } isn_arg;
443 }; 449 };
444 450
445 /* 451 /*
446 * Info about a function defined with :def. Used in "def_functions". 452 * Info about a function defined with :def. Used in "def_functions".