diff options
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index fe2adcc..d21c2fa 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -917,10 +917,10 @@ valpy_call (PyObject *self, PyObject *args, PyObject *keywords) TRY { scoped_value_mark free_values; - struct value *return_value; - return_value = call_function_by_hand (function, NULL, - args_count, vargs); + value *return_value + = call_function_by_hand (function, NULL, + gdb::make_array_view (vargs, args_count)); result = value_to_value_object (return_value); } CATCH (except, RETURN_MASK_ALL) |