diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-05-31 14:20:31 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-05-31 14:20:31 +0000 |
commit | 6a65450a7c2eb58268a274726106cf8b1ca0aaa9 (patch) | |
tree | 7d3622095bafa6c5c5a5d6f82a15c7010a7cb7ba /gdb/i386-tdep.c | |
parent | c4f35dd8e1037d2a8e1aa11894cb67de96279bfa (diff) | |
download | gdb-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/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 6641516..47bf95c 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -1005,9 +1005,10 @@ i386_get_longjmp_target (CORE_ADDR *pc) static CORE_ADDR -i386_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) +i386_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) { char buf[4]; int i; @@ -1038,7 +1039,7 @@ i386_push_dummy_call (struct gdbarch *gdbarch, struct regcache *regcache, /* Store return address. */ sp -= 4; - store_unsigned_integer (buf, 4, dummy_addr); + store_unsigned_integer (buf, 4, bp_addr); write_memory (sp, buf, 4); /* Finally, update the stack pointer... */ |