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/rs6000-tdep.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/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index e9f8a86..afd901e 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1591,7 +1591,7 @@ rs6000_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct value *arg = 0; struct type *type; - CORE_ADDR saved_sp; + ULONGEST saved_sp; /* The calling convention this function implements assumes the processor has floating-point registers. We shouldn't be using it @@ -1693,7 +1693,7 @@ rs6000_push_dummy_call (struct gdbarch *gdbarch, struct value *function, ran_out_of_registers_for_arguments: - saved_sp = read_sp (); + regcache_cooked_read_unsigned (regcache, SP_REGNUM, &saved_sp); /* Location for 8 parameters are always reserved. */ sp -= wordsize * 8; |