aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2007-09-17 19:44:20 +0000
committerJoel Brobecker <brobecker@gnat.com>2007-09-17 19:44:20 +0000
commitf4c1edd8e5cf0259b98f7c64b0b88adef1d21d3c (patch)
tree2e41e2931b34e6bf29500dc9527ce5756d111c03 /gdb/infrun.c
parent8d4e36bad1bab0ff367a2f9ab7a131d63e030de0 (diff)
downloadgdb-f4c1edd8e5cf0259b98f7c64b0b88adef1d21d3c.zip
gdb-f4c1edd8e5cf0259b98f7c64b0b88adef1d21d3c.tar.gz
gdb-f4c1edd8e5cf0259b98f7c64b0b88adef1d21d3c.tar.bz2
* infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
that return_frame is not null.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a8297c9..1a85567 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