OSDN Git Service

2003-04-04 Andrew Cagney <cagney@redhat.com>
authorcagney <cagney>
Fri, 4 Apr 2003 14:45:59 +0000 (14:45 +0000)
committercagney <cagney>
Fri, 4 Apr 2003 14:45:59 +0000 (14:45 +0000)
* frame.c (create_sentinel_frame): Initialize the sentinel frame's
ID to NULL.

gdb/ChangeLog
gdb/frame.c

index 2853e12..83cb701 100644 (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
index 09dea5e..4791bf0 100644 (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;
 }