* inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
[deliverable/binutils-gdb.git] / gdb / procfs.c
index 1a694e0f0d4391353bf52a14551d022fbf1ffa0f..86885cc49772cf30ff625dbbaba16438f73aba26 100644 (file)
@@ -1956,10 +1956,17 @@ procfs_wait (statloc)
     }
   else if (!(pi.prstatus.pr_flags & (PR_STOPPED | PR_ISTOP)))
     {
+      if (attach_flag)
+       set_sigint_trap();      /* Causes SIGINT to be passed on to the
+                                  attached process. */
+
       if (ioctl (pi.fd, PIOCWSTOP, &pi.prstatus) < 0)
        {
          checkerr++;
        }
+
+      if (attach_flag)
+       clear_sigint_trap();
     }    
   if (checkerr)
     {
This page took 0.023213 seconds and 4 git commands to generate.