From 56710373a0ab471d0891ad49b5c2a70f53cfc00d Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sun, 15 Nov 2009 20:08:03 +0000 Subject: * breakpoint.c (should_be_inserted): Don't insert breakpoints if the pspace doesn't allow breakpoints. (insert_breakpoint_locations): Remove waiting_for_vfork_done special case. Expect watchpoints that shouldn't be inserted, to not be inserted. * progspace.h (struct program_space) : New field. * infrun.c (handle_inferior_event): Clear it. * linux-nat.c (linux_child_follow_fork): Set it. --- gdb/infrun.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 9d8ab68..c28366f 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3004,6 +3004,7 @@ handle_inferior_event (struct execution_control_state *ecs) context_switch (ecs->ptid); current_inferior ()->waiting_for_vfork_done = 0; + current_inferior ()->pspace->breakpoints_not_allowed = 0; /* This also takes care of reinserting breakpoints in the previously locked inferior. */ keep_going (ecs); -- cgit v1.1