diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-13 12:27:30 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-13 12:27:30 +0000 |
commit | fb4443d8bc8dd6d4b9c9a8af474da79a65deb0be (patch) | |
tree | fddb3e6ba581319a191f78ed9587f73cb3fc35dd /gdb/infcall.c | |
parent | adc44effcb2e47b4410fa96c6e382d7a4695911e (diff) | |
download | gdb-fb4443d8bc8dd6d4b9c9a8af474da79a65deb0be.zip gdb-fb4443d8bc8dd6d4b9c9a8af474da79a65deb0be.tar.gz gdb-fb4443d8bc8dd6d4b9c9a8af474da79a65deb0be.tar.bz2 |
* inferior.h (read_sp): Remove prototype.
* regcache.c (read_sp): Remove.
* gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
* infcall.c (call_function_by_hand): Likewise.
* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
of calling read_sp.
* rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index c4435e5..5eb9ca3 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -368,7 +368,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args) /* Ensure that the initial SP is correctly aligned. */ { - CORE_ADDR old_sp = read_sp (); + CORE_ADDR old_sp = get_frame_sp (get_current_frame ()); if (gdbarch_frame_align_p (current_gdbarch)) { sp = gdbarch_frame_align (current_gdbarch, old_sp); |