aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-11-05 18:56:45 +0000
committerPedro Alves <palves@redhat.com>2012-11-05 18:56:45 +0000
commit68c9da300bc7b0d1245111a0e29471f721fa490d (patch)
treef73679406d60c6af9d722b665a2baf7c5b43ccfc /gdb/infrun.c
parenta7c8c9312a88f65ecb43c28c5fba6f26aa87ba5b (diff)
downloadgdb-68c9da300bc7b0d1245111a0e29471f721fa490d.zip
gdb-68c9da300bc7b0d1245111a0e29471f721fa490d.tar.gz
gdb-68c9da300bc7b0d1245111a0e29471f721fa490d.tar.bz2
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index ab5aacf..3d6eccd 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -663,6 +663,8 @@ handle_vfork_child_exec_or_exit (int exec)
/* follow-fork child, detach-on-fork on. */
+ inf->vfork_parent->pending_detach = 0;
+
if (!exec)
{
/* If we're handling a child exit, then inferior_ptid