Use gdb:array_view in call_function_by_hand & friends
[deliverable/binutils-gdb.git] / gdb / compile / compile-object-run.c
index f3ec932365ebb08adf5f5724b029ab8f92bc5e4a..e891e77fba08ed14681941eb1728f40e6140e79a 100644 (file)
@@ -170,8 +170,8 @@ compile_object_run (struct compile_module *module)
          ++current_arg;
        }
       gdb_assert (current_arg == TYPE_NFIELDS (func_type));
-      call_function_by_hand_dummy (func_val,
-                                  NULL, TYPE_NFIELDS (func_type), vargs,
+      auto args = gdb::make_array_view (vargs, TYPE_NFIELDS (func_type));
+      call_function_by_hand_dummy (func_val, NULL, args,
                                   do_module_cleanup, data);
     }
   CATCH (ex, RETURN_MASK_ERROR)
This page took 0.024623 seconds and 4 git commands to generate.