gdb/
authorPedro Alves <palves@redhat.com>
Sun, 17 May 2009 19:20:33 +0000 (19:20 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 17 May 2009 19:20:33 +0000 (19:20 +0000)
commitb242c3c2373ba4e31c501571c8b16d26d8fd2067
tree701867d15bd9ad5fac9af7ba2d1be395e5717188
parent235f2b04aed3c632481f8db71a3ea880ad575098
gdb/
2009-05-17  Pedro Alves  <pedro@codesourcery.com>

* infrun.c (handle_inferior_event): When handling a
TARGET_WAITKIND_FORKED, detach breakpoints from the fork child
immediatelly.
* linux-nat.c (linux_child_follow_fork): Only detach breakpoint
from the child if vforking.
* inf-ptrace.c (inf_ptrace_follow_fork): No need to detach
breakpoints from the child here.

gdb/testsuite/
2009-05-17  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/foll-fork.c: Include stdlib.h.  Add markers for
`gdb_get_line_number'.  Call `callee' in both parent and child.
* gdb.base/foll-fork.exp (catch_fork_child_follow): Use
`gdb_get_line_number' instead of hardcoding line numbers.
(catch_fork_unpatch_child): New procedure to test detaching
breakpoints from child fork.
(tcatch_fork_parent_follow): Use `gdb_get_line_number' instead of
hardcoding line numbers.
(do_fork_tests): Run `catch_fork_unpatch_child'.
gdb/ChangeLog
gdb/inf-ptrace.c
gdb/infrun.c
gdb/linux-nat.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/foll-fork.c
gdb/testsuite/gdb.base/foll-fork.exp
This page took 0.032061 seconds and 4 git commands to generate.