From 50bbdbd931ec00d2cc73a88dcdc3f4ebeea0460c Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 4 Apr 2003 14:46:00 +0000 Subject: [PATCH] 2003-04-04 Andrew Cagney * frame.c (create_sentinel_frame): Initialize the sentinel frame's ID to NULL. --- gdb/ChangeLog | 5 +++++ gdb/frame.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2853e12edbb..83cb7018268 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-04-04 Andrew Cagney + + * frame.c (create_sentinel_frame): Initialize the sentinel frame's + ID to NULL. + 2003-04-01 Adam Fedor * gdb/objc-lang.c (selectors_info): Replace calls to diff --git a/gdb/frame.c b/gdb/frame.c index 09dea5e4c02..4791bf0059c 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; } -- 2.30.2