diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-04-04 14:46:00 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-04-04 14:46:00 +0000 |
commit | ed71ff0fe066156be942ddce9fcbd2c157deb304 (patch) | |
tree | 9790f6fc57b4e00c72bc2d0801db8b362afbe397 | |
parent | d166f836b05aae0c86c3e7fd4d969d3704782bae (diff) | |
download | gdb-ed71ff0fe066156be942ddce9fcbd2c157deb304.tar.gz |
2003-04-04 Andrew Cagney <cagney@redhat.com>
* frame.c (create_sentinel_frame): Initialize the sentinel frame's
ID to NULL.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/frame.c | 4 |
2 files changed, 9 insertions, 0 deletions
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 <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 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; } |