File startup-inferior.diff of Package gdb

--- gdb/fork-child.c	10 Nov 2008 11:25:09 +0100	1.47
+++ gdb/fork-child.c	20 Nov 2008 14:27:26 +0100	
@@ -494,6 +494,9 @@ startup_inferior (int ntraps)
 	resume_ptid = pid_to_ptid (-1);
       else
 	resume_ptid = event_ptid;
+      /* Update running state now, in case an error occurs during
+	 resume.  */
+      set_running (resume_ptid, 0);
 
       if (resume_signal != TARGET_SIGNAL_TRAP)
 	{
openSUSE Build Service is sponsored by