From 5f74e6eca785b0394d15e44fb4e1827472926005 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 5 Jun 2003 14:26:58 +0000 Subject: * linux-low.c (linux_wait_for_event): Correct comment typos. (linux_resume_one_process): Call check_removed_breakpoint. (linux_send_signal): New function. (linux_target_ops): Add linux_send_signal. * remote-utils.c (putpkt, input_interrupt): Use send_signal instead of kill. * target.h (struct target_ops): Add send_signal. --- gdb/gdbserver/remote-utils.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gdb/gdbserver/remote-utils.c') diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index d5699379bd5..eb56c1039a8 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -46,8 +46,6 @@ 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. */ @@ -326,7 +324,7 @@ putpkt (char *buf) /* Check for an input interrupt while we're here. */ if (buf3[0] == '\003') - kill (signal_pid, SIGINT); + (*the_target->send_signal) (SIGINT); } while (buf3[0] != '+'); @@ -363,7 +361,7 @@ input_interrupt (int unused) return; } - kill (signal_pid, SIGINT); + (*the_target->send_signal) (SIGINT); } } -- cgit v1.2.1