aboutsummaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-05-31 14:20:31 +0000
committerAndrew Cagney <cagney@redhat.com>2003-05-31 14:20:31 +0000
commit6a65450a7c2eb58268a274726106cf8b1ca0aaa9 (patch)
tree7d3622095bafa6c5c5a5d6f82a15c7010a7cb7ba /gdb/d10v-tdep.c
parentc4f35dd8e1037d2a8e1aa11894cb67de96279bfa (diff)
downloadgdb-6a65450a7c2eb58268a274726106cf8b1ca0aaa9.zip
gdb-6a65450a7c2eb58268a274726106cf8b1ca0aaa9.tar.gz
gdb-6a65450a7c2eb58268a274726106cf8b1ca0aaa9.tar.bz2
2003-05-31 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename "dummy_addr" to "bp_addr". * infcall.c (call_function_by_hand): Pass "funaddr" to gdbarch_push_dummy_call. * gdbarch.h, gdbarch.c: Re-generate. * i386-tdep.c (i386_push_dummy_call): Update. * arm-tdep.c (arm_push_dummy_call): Update. * d10v-tdep.c (d10v_push_dummy_call): Update.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index c184b44..6278161 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -977,9 +977,10 @@ d10v_push_dummy_code (struct gdbarch *gdbarch,
}
static CORE_ADDR
-d10v_push_dummy_call (struct gdbarch *gdbarch, struct regcache *regcache,
- CORE_ADDR dummy_addr, int nargs, struct value **args,
- CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr)
+d10v_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
+ struct regcache *regcache, CORE_ADDR bp_addr,
+ int nargs, struct value **args, CORE_ADDR sp, int struct_return,
+ CORE_ADDR struct_addr)
{
int i;
int regnum = ARG1_REGNUM;
@@ -987,9 +988,9 @@ d10v_push_dummy_call (struct gdbarch *gdbarch, struct regcache *regcache,
long val;
/* Set the return address. For the d10v, the return breakpoint is
- always at DUMMY_ADDR. */
+ always at BP_ADDR. */
regcache_cooked_write_unsigned (regcache, LR_REGNUM,
- d10v_convert_iaddr_to_raw (dummy_addr));
+ d10v_convert_iaddr_to_raw (bp_addr));
/* If STRUCT_RETURN is true, then the struct return address (in
STRUCT_ADDR) will consume the first argument-passing register.