aboutsummaryrefslogtreecommitdiff
path: root/gdb/gcore.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-08 22:47:46 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-08 22:47:46 +0000
commit8d357ccaa7453f32482275a89577fe5d4445f383 (patch)
treed0e2aa0fc8fc7b628a3e8103ef948e9163c3808f /gdb/gcore.c
parentbca02a8a3a0a380439e57cd57abba4a9228f029a (diff)
downloadbinutils-8d357ccaa7453f32482275a89577fe5d4445f383.zip
binutils-8d357ccaa7453f32482275a89577fe5d4445f383.tar.gz
binutils-8d357ccaa7453f32482275a89577fe5d4445f383.tar.bz2
2003-01-08 Andrew Cagney <cagney@redhat.com>
* gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and get_frame_base.
Diffstat (limited to 'gdb/gcore.c')
-rw-r--r--gdb/gcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c
index 155ebe0..a2f10d7 100644
--- a/gdb/gcore.c
+++ b/gdb/gcore.c
@@ -179,7 +179,7 @@ derive_stack_segment (bfd_vma *bottom, bfd_vma *top)
return 0; /* Can't succeed without current frame. */
/* Save frame pointer of TOS frame. */
- *top = fi->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 ();
@@ -189,7 +189,7 @@ derive_stack_segment (bfd_vma *bottom, bfd_vma *top)
fi = tmp_fi;
/* Save frame pointer of prev-most frame. */
- *bottom = fi->frame;
+ *bottom = get_frame_base (fi);
/* Now canonicalize their order, so that 'bottom' is a lower address
(as opposed to a lower stack frame). */