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/gcore.c | |
parent | adc44effcb2e47b4410fa96c6e382d7a4695911e (diff) | |
download | binutils-gdb-fb4443d8bc8dd6d4b9c9a8af474da79a65deb0be.tar.gz |
* 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/gcore.c')
-rw-r--r-- | gdb/gcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c index 00b8ebaaa58..46d2aac4031 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -187,8 +187,8 @@ derive_stack_segment (bfd_vma *bottom, bfd_vma *top) /* Save frame pointer of TOS frame. */ *top = get_frame_base (fi); /* If current stack pointer is more "inner", use that instead. */ - if (INNER_THAN (read_sp (), *top)) - *top = read_sp (); + if (INNER_THAN (get_frame_sp (fi), *top)) + *top = get_frame_sp (fi); /* Find prev-most frame. */ while ((tmp_fi = get_prev_frame (fi)) != NULL) |