aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/remote-utils.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-08-29 18:50:25 +0000
committerDaniel Jacobowitz <drow@false.org>2002-08-29 18:50:25 +0000
commita9fa9f7daf3fdb5a1cc0149156ac8d497893cf0f (patch)
treea7aca92dbeec50d8e44abc5bc83432371681279b /gdb/gdbserver/remote-utils.c
parente551c2572e97cf7ab0a431f5a1f25207d9a4d179 (diff)
downloadgdb-a9fa9f7daf3fdb5a1cc0149156ac8d497893cf0f.zip
gdb-a9fa9f7daf3fdb5a1cc0149156ac8d497893cf0f.tar.gz
gdb-a9fa9f7daf3fdb5a1cc0149156ac8d497893cf0f.tar.bz2
* linux-low.c (linux_create_inferior): Call setpgid. Return
the new PID. (unstopped_p, linux_signal_pid): Remove. (linux_target_ops): Remove linux_signal_pid. * remote-utils.c (putpkt, input_interrupt): Use signal_pid global instead of target method. * target.h (struct target_ops): Remove signal_pid. Update comment for create_inferior. * server.c (signal_pid): New variable. (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in gdbserver. Set the child to be the foreground process group. (attach_inferior): Set signal_pid.
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r--gdb/gdbserver/remote-utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index c610c4c..d569937 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -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);
}
}