* linux-low.c (linux_create_inferior): Call setpgid. Return
[deliverable/binutils-gdb.git] / gdb / gdbserver / remote-utils.c
index c610c4c0e7cf663d84eb9513829cf322e614b800..d5699379bd5f36fd57716398ecb61aac1e07be51 100644 (file)
@@ -46,6 +46,8 @@ static int remote_desc;
 extern int using_threads;
 extern int debug_threads;
 
+extern int signal_pid;
+
 /* Open a connection to a remote debugger.
    NAME is the filename used for communication.  */
 
@@ -324,7 +326,7 @@ putpkt (char *buf)
 
       /* Check for an input interrupt while we're here.  */
       if (buf3[0] == '\003')
-       kill ((*the_target->signal_pid) (), SIGINT);
+       kill (signal_pid, SIGINT);
     }
   while (buf3[0] != '+');
 
@@ -361,7 +363,7 @@ input_interrupt (int unused)
          return;
        }
       
-      kill ((*the_target->signal_pid) (), SIGINT);
+      kill (signal_pid, SIGINT);
     }
 }
 
This page took 0.024331 seconds and 4 git commands to generate.