diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-05-31 16:54:18 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-05-31 16:54:18 +0000 |
commit | 10f93086fb0aaf27687dee670f3b53a5726236d5 (patch) | |
tree | 4ddf73a4b4e259bb457a9f18af890105f8554250 /gdb/x86-64-tdep.c | |
parent | 1c3545aea9b4e7106e736ed3f6908e5a5d42d015 (diff) | |
download | gdb-10f93086fb0aaf27687dee670f3b53a5726236d5.zip gdb-10f93086fb0aaf27687dee670f3b53a5726236d5.tar.gz gdb-10f93086fb0aaf27687dee670f3b53a5726236d5.tar.bz2 |
* x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
function signature.
Diffstat (limited to 'gdb/x86-64-tdep.c')
-rw-r--r-- | gdb/x86-64-tdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index a33d33a..f01be3d 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -754,9 +754,10 @@ x86_64_store_return_value (struct type *type, struct regcache *regcache, static CORE_ADDR -x86_64_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) +x86_64_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[8]; @@ -772,7 +773,7 @@ x86_64_push_dummy_call (struct gdbarch *gdbarch, struct regcache *regcache, /* Store return address. */ sp -= 8; - store_unsigned_integer (buf, 8, dummy_addr); + store_unsigned_integer (buf, 8, bp_addr); write_memory (sp, buf, 8); /* Finally, update the stack pointer... */ |