gdb/
authorPedro Alves <palves@redhat.com>
Mon, 5 Nov 2012 18:56:45 +0000 (18:56 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 5 Nov 2012 18:56:45 +0000 (18:56 +0000)
commit68c9da300bc7b0d1245111a0e29471f721fa490d
treef73679406d60c6af9d722b665a2baf7c5b43ccfc
parenta7c8c9312a88f65ecb43c28c5fba6f26aa87ba5b
gdb/
2012-11-05  Pedro Alves  <palves@redhat.com>

* inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
child.  Clear 'pending_detach'.
* infrun.c (handle_vfork_child_exec_or_exit): Clear
'pending_detach' in the vfork parent.

gdb/testsuite/
2012-11-05  Pedro Alves  <palves@redhat.com>

* gdb.base/foll-vfork.exp (vfork_relations_in_info_inferiors): New
procedure.
(do_vfork_and_follow_child_tests_exec)
(do_vfork_and_follow_child_tests_exit): Call it.
gdb/ChangeLog
gdb/inferior.c
gdb/infrun.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/foll-vfork.exp