2003-04-04 Andrew Cagney <cagney@redhat.com>

* frame.c (create_sentinel_frame): Initialize the sentinel frame's
	ID to NULL.
This commit is contained in:
Andrew Cagney 2003-04-04 14:46:00 +00:00
parent 9f8633693f
commit 50bbdbd931
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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;
}