diff options
author | Pedro Alves <palves@redhat.com> | 2009-11-15 20:08:03 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-11-15 20:08:03 +0000 |
commit | 56710373a0ab471d0891ad49b5c2a70f53cfc00d (patch) | |
tree | 56dd84ef4a022e7b9126349c55a3a44bb97b6f74 /gdb/linux-nat.c | |
parent | 8a9eab9b5ee88bda4d83a237e3a3c0723530a51e (diff) | |
download | gdb-56710373a0ab471d0891ad49b5c2a70f53cfc00d.zip gdb-56710373a0ab471d0891ad49b5c2a70f53cfc00d.tar.gz gdb-56710373a0ab471d0891ad49b5c2a70f53cfc00d.tar.bz2 |
* 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) <breakpoints_not_allowed>:
New field.
* infrun.c (handle_inferior_event): Clear it.
* linux-nat.c (linux_child_follow_fork): Set it.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index c0c0240..95feca6 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -793,6 +793,7 @@ holding the child stopped. Try \"set detach-on-fork\" or \ subsequent child exec or exit is enough to know when does the child stops using the parent's address space. */ parent_inf->waiting_for_vfork_done = detach_fork; + parent_inf->pspace->breakpoints_not_allowed = detach_fork; lp = find_lwp_pid (pid_to_ptid (parent_pid)); gdb_assert (linux_supports_tracefork_flag >= 0); |