aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-05-09 03:52:11 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-05-09 03:52:11 +0000
commit86c31399870fee8dcfe74e0e64e4cae80db534c4 (patch)
tree0308eed17bfca92b53ee805f2f9edaa47cc35f05 /gdb/frame.c
parent2da12075424805e6e4ef94625032f0029a0c6108 (diff)
downloadgdb-86c31399870fee8dcfe74e0e64e4cae80db534c4.zip
gdb-86c31399870fee8dcfe74e0e64e4cae80db534c4.tar.gz
gdb-86c31399870fee8dcfe74e0e64e4cae80db534c4.tar.bz2
* frame.c (get_frame_base_address, get_frame_locals_address)
(get_frame_args_address): Pass the correct frame when calling frame_base_find_by_frame.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 3658b0a..45b9b5f 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1592,7 +1592,7 @@ get_frame_base_address (struct frame_info *fi)
if (get_frame_type (fi) != NORMAL_FRAME)
return 0;
if (fi->base == NULL)
- fi->base = frame_base_find_by_frame (fi->next);
+ fi->base = frame_base_find_by_frame (fi);
/* Sneaky: If the low-level unwind and high-level base code share a
common unwinder, let them share the prologue cache. */
if (fi->base->unwind == fi->unwind)
@@ -1608,7 +1608,7 @@ get_frame_locals_address (struct frame_info *fi)
return 0;
/* If there isn't a frame address method, find it. */
if (fi->base == NULL)
- fi->base = frame_base_find_by_frame (fi->next);
+ fi->base = frame_base_find_by_frame (fi);
/* Sneaky: If the low-level unwind and high-level base code share a
common unwinder, let them share the prologue cache. */
if (fi->base->unwind == fi->unwind)
@@ -1624,7 +1624,7 @@ get_frame_args_address (struct frame_info *fi)
return 0;
/* If there isn't a frame address method, find it. */
if (fi->base == NULL)
- fi->base = frame_base_find_by_frame (fi->next);
+ fi->base = frame_base_find_by_frame (fi);
/* Sneaky: If the low-level unwind and high-level base code share a
common unwinder, let them share the prologue cache. */
if (fi->base->unwind == fi->unwind)