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/progspace.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/progspace.h') diff --git a/gdb/progspace.h b/gdb/progspace.h index 0cf1382..4d87d16 100644 --- a/gdb/progspace.h +++ b/gdb/progspace.h @@ -165,6 +165,10 @@ struct program_space to set breakpoints point at the wrong addresses. */ int executing_startup; + /* True if no breakpoints should be inserted in this program + space. */ + int breakpoints_not_allowed; + /* The object file that the main symbol table was loaded from (e.g. the argument to the "symbol-file" or "file" command). */ struct objfile *symfile_object_file; -- cgit v1.1