Pass return_method to _push_dummy_call
[deliverable/binutils-gdb.git] / gdb / mep-tdep.c
index ae9c4debcae9603b9e68fa3bb6df31dbbbd90b58..b0c73f6c92b41ba545efacbec52b490c4027d781 100644 (file)
@@ -2258,7 +2258,7 @@ static CORE_ADDR
 mep_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
                      struct regcache *regcache, CORE_ADDR bp_addr,
                      int argc, struct value **argv, CORE_ADDR sp,
-                     int struct_return,
+                    function_call_return_method return_method,
                      CORE_ADDR struct_addr)
 {
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
@@ -2287,7 +2287,7 @@ mep_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
 
   /* If we're returning a structure by value, push the pointer to the
      buffer as the first argument.  */
-  if (struct_return)
+  if (return_method == return_method_struct)
     {
       regcache_cooked_write_unsigned (regcache, arg_reg, struct_addr);
       arg_reg++;
This page took 0.023536 seconds and 4 git commands to generate.