* infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
authorJoel Brobecker <brobecker@gnat.com>
Mon, 17 Sep 2007 19:44:20 +0000 (19:44 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 17 Sep 2007 19:44:20 +0000 (19:44 +0000)
        that return_frame is not null.

gdb/ChangeLog
gdb/infrun.c

index f22d6a8e892c4fd6f80a6df941d28df5420e3c94..d837eb4e07d9512a37dfdb12527c7fed2e41d656 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
+       that return_frame is not null.
+
 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
 
        * solib-svr4.c: Add include of "auxv.h".
index a8297c95ebf44386d3894ee75500b6c21c93eb49..1a8556775ac7afff589c4f78765bd18fb147549c 100644 (file)
@@ -2868,6 +2868,7 @@ insert_step_resume_breakpoint_at_frame (struct frame_info *return_frame)
 {
   struct symtab_and_line sr_sal;
 
+  gdb_assert (return_frame != NULL);
   init_sal (&sr_sal);          /* initialize to zeros */
 
   sr_sal.pc = gdbarch_addr_bits_remove