aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/frame.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2853e12..83cb701 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-04 Andrew Cagney <cagney@redhat.com>
+
+ * frame.c (create_sentinel_frame): Initialize the sentinel frame's
+ ID to NULL.
+
2003-04-01 Adam Fedor <fedor@gnu.org>
* gdb/objc-lang.c (selectors_info): Replace calls to
diff --git a/gdb/frame.c b/gdb/frame.c
index 09dea5e..4791bf0 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -512,6 +512,10 @@ create_sentinel_frame (struct regcache *regcache)
frame's PC may require information such as the frame's thread's
stop reason. Is it possible to get to that? */
frame->pc = frame_pc_unwind (frame);
+ /* Make the sentinel frame's ID valid, but invalid. That way all
+ comparisons with it should fail. */
+ frame->id_p = 1;
+ frame->id = null_frame_id;
return frame;
}