* infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion

that return_frame is not null.
This commit is contained in:
Joel Brobecker 2007-09-17 19:44:20 +00:00
parent 8d4e36bad1
commit f4c1edd8e5
2 changed files with 6 additions and 0 deletions

View 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".

View 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