Skip to content

Commit c7d9eac

Browse files
committed
patch 8.0.0287: debug mode: cannot access function arguments
Problem: Cannot access the arguments of the current function in debug mode. (Luc Hermitte) Solution: use get_funccal(). (Lemonboy, closes #1432, closes #1352)
1 parent c10f0e7 commit c7d9eac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/userfunc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3556,7 +3556,7 @@ get_funccal_args_var()
35563556
{
35573557
if (current_funccal == NULL)
35583558
return NULL;
3559-
return &current_funccal->l_avars_var;
3559+
return &get_funccal()->l_avars_var;
35603560
}
35613561

35623562
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
287,
767769
/**/
768770
286,
769771
/**/

0 commit comments

Comments
 (0)