Use gdb:array_view in call_function_by_hand & friends
[deliverable/binutils-gdb.git] / gdb / python / py-value.c
index fe2adcc19c348846bd80e2b0098c33ff8aaf07b8..d21c2faf64a21e26aa72764460cc0c1ec390b00e 100644 (file)
@@ -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)
This page took 0.031463 seconds and 4 git commands to generate.