summaryrefslogtreecommitdiff
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
commitda247b0fc1f5def71aa150dbe7fc5ed12a5ba766 (patch)
tree75627259241c03567cea14fa42db3cc42cd85ca1
parent66d27897cf467191783ffafdc6a2e258e035a2b8 (diff)
downloadgdb-da247b0fc1f5def71aa150dbe7fc5ed12a5ba766.tar.gz
* 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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/frame.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e5da3e49cc0..c27b85221f4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-08 Joel Brobecker <brobecker@adacore.com>
+
+ * 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.
+
2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
* remote.c (extended_remote_attach_1): Call target_find_description.
diff --git a/gdb/frame.c b/gdb/frame.c
index 3658b0aca29..45b9b5f3903 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)