summaryrefslogtreecommitdiff
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
commit71a49e0291b57b080555e46d3ca71b863310d25c (patch)
treefa51db83c5a3fade82a05aed98a0f533d08a61b7 /gdb/gcore.c
parent56affcc06eb617b387edbb66f14a6d4d9d5909e1 (diff)
downloadgdb-71a49e0291b57b080555e46d3ca71b863310d25c.tar.gz
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 155ebe09c8f..a2f10d71dbd 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). */