From: cagney Date: Fri, 4 Apr 2003 14:45:59 +0000 (+0000) Subject: 2003-04-04 Andrew Cagney X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7dd0bad3df1106ee8e1968c27b3116ebec7c3f04;p=pf3gnuchains%2Fsourceware.git 2003-04-04 Andrew Cagney * frame.c (create_sentinel_frame): Initialize the sentinel frame's ID to NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2853e12edb..83cb701826 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 09dea5e4c0..4791bf0059 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; }