diff options
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 8967cf1..95bf670 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -10928,7 +10928,9 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp, error_call_unknown_return_type (NULL); return allocate_value (TYPE_TARGET_TYPE (type)); } - return call_function_by_hand (argvec[0], NULL, nargs, argvec + 1); + return call_function_by_hand (argvec[0], NULL, + gdb::make_array_view (argvec + 1, + nargs)); case TYPE_CODE_INTERNAL_FUNCTION: if (noside == EVAL_AVOID_SIDE_EFFECTS) /* We don't know anything about what the internal |