X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Farc-tdep.c;h=cd2762cb5cd61b654c4b7a38eaeae87d8638dd8c;hb=9335e75a6170fbf76f60548690d5724198cf0440;hp=fad91709786acffa0790f1b7b78cb1902d2d9edf;hpb=b66f5587de2a096f357124b20376b2bab980238b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index fad9170978..cd2762cb5c 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -1,6 +1,6 @@ /* Target dependent code for ARC arhitecture, for GDB. - Copyright 2005-2018 Free Software Foundation, Inc. + Copyright 2005-2019 Free Software Foundation, Inc. Contributed by Synopsys Inc. This file is part of GDB. @@ -33,7 +33,7 @@ /* ARC header files. */ #include "opcode/arc.h" -#include "opcodes/arc-dis.h" +#include "../opcodes/arc-dis.h" #include "arc-tdep.h" /* Standard headers. */ @@ -592,7 +592,8 @@ arc_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame) static CORE_ADDR arc_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, - struct value **args, CORE_ADDR sp, int struct_return, + struct value **args, CORE_ADDR sp, + function_call_return_method return_method, CORE_ADDR struct_addr) { if (arc_debug) @@ -607,7 +608,7 @@ arc_push_dummy_call (struct gdbarch *gdbarch, struct value *function, value return? If so, struct_addr is the address of the reserved space for the return structure to be written on the stack, and that address is passed to that function as a hidden first argument. */ - if (struct_return) + if (return_method == return_method_struct) { /* Pass the return address in the first argument register. */ regcache_cooked_write_unsigned (regcache, arg_reg, struct_addr);