csky_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, CORE_ADDR struct_addr)
+ function_call_return_method return_method,
+ CORE_ADDR struct_addr)
{
int argnum;
int argreg = CSKY_ABI_A0_REGNUM;
/* The struct_return pointer occupies the first parameter
passing register. */
- if (struct_return)
+ if (return_method == return_method_struct)
{
if (csky_debug)
{
"csky: found stack adjustment of"
" 0x%x bytes.\n", adjust);
fprintf_unfiltered (gdb_stdlog,
- "csky: skipping to new address "
- "0x%lx\n", addr);
+ "csky: skipping to new address %s\n",
+ core_addr_to_string_nz (addr));
fprintf_unfiltered (gdb_stdlog,
"csky: continuing\n");
}
else if (CSKY_16_IS_LRW4 (insn) || CSKY_16_IS_MOVI4 (insn))
{
int adjust = 0;
- int offset = 0;
unsigned int insn2;
if (csky_debug)
fprintf_unfiltered (gdb_stdlog,
"csky: looking for r4 adjusters...\n");
}
- offset = 2;
+ int offset = 2;
insn_len = csky_get_insn (gdbarch, addr + offset, &insn2);
while (CSKY_IS_R4_ADJUSTER (insn2))
{
"found stack adjustment of 0x%x"
" bytes.\n", adjust);
fprintf_unfiltered (gdb_stdlog, "csky: "
- "skipping to new address 0x%lx\n",
- addr);
+ "skipping to new address %s\n",
+ core_addr_to_string_nz (addr));
fprintf_unfiltered (gdb_stdlog, "csky: continuing\n");
}
continue;
/* Sanity-check bp_address. */
if (bp_tgt->reqstd_address % 2)
- warning (_("Invalid breakpoint address 0x%x is an odd number.\n"),
+ warning (_("Invalid breakpoint address 0x%x is an odd number."),
(unsigned int) bp_tgt->reqstd_address);
scoped_restore restore_memory
= make_scoped_restore_show_memory_breakpoints (1);