From: Joel Brobecker Date: Mon, 17 Sep 2007 19:44:20 +0000 (+0000) Subject: * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4c1edd8e5cf0259b98f7c64b0b88adef1d21d3c;p=binutils-gdb.git * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion that return_frame is not null. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f22d6a8e892..d837eb4e07d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-09-17 Joel Brobecker + + * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion + that return_frame is not null. + 2007-09-17 Joel Brobecker * solib-svr4.c: Add include of "auxv.h". diff --git a/gdb/infrun.c b/gdb/infrun.c index a8297c95ebf..1a8556775ac 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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