2011-05-20 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Fri, 20 May 2011 16:43:47 +0000 (16:43 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 20 May 2011 16:43:47 +0000 (16:43 +0000)
* infrun.c (proceed): Switch the inferior event loop to
INF_EXEC_COMPLETE if the target refused to resume from a
vfork/fork.

gdb/ChangeLog
gdb/infrun.c

index c8ebd09..cb5cefc 100644 (file)
@@ -1,5 +1,11 @@
 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
 
+       * infrun.c (proceed): Switch the inferior event loop to
+       INF_EXEC_COMPLETE if the target refused to resume from a
+       vfork/fork.
+
+2011-05-20  Pedro Alves  <pedro@codesourcery.com>
+
        * infcmd.c: Include "inf-loop.h".
        (step_once): When stepping into an inline subroutine, pretend the
        target has run.  If the target can async, switch the inferior
index 7b9245c..dac8b0d 100644 (file)
@@ -2066,6 +2066,8 @@ proceed (CORE_ADDR addr, enum target_signal siggnal, int step)
     {
       /* The target for some reason decided not to resume.  */
       normal_stop ();
+      if (target_can_async_p ())
+       inferior_event_handler (INF_EXEC_COMPLETE, NULL);
       return;
     }