Error when gdb_is_target_1 is called without running gdb instance
[binutils-gdb.git] / gdb / ppc-sysv-tdep.c
index 5255cea43e389f043f03670d2df2685e8f256bc3..9a3b02f028d360cf99c974026df2e646541fd1b3 100644 (file)
@@ -1761,7 +1761,8 @@ ppc64_sysv_abi_return_value_base (struct gdbarch *gdbarch, struct type *valtype,
              /* Fixed point type values need to be returned unscaled.  */
              gdb_mpz unscaled;
 
-             unscaled.read ({writebuf, TYPE_LENGTH (valtype)},
+             unscaled.read (gdb::make_array_view (writebuf,
+                                                  TYPE_LENGTH (valtype)),
                             type_byte_order (valtype),
                             valtype->is_unsigned ());
              return_val = unscaled.as_integer<LONGEST> ();