* server.c (handle_v_kill): Pass signal_pid to
authorPierre Muller <muller@sourceware.org>
Wed, 24 Jun 2009 15:23:32 +0000 (15:23 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 24 Jun 2009 15:23:32 +0000 (15:23 +0000)
kill_inferior if multi_process is zero.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index 6d60590733df27b3df3f702e510f2edb938450a0..a43a86fd57e12725deac33292455207c791c92cb 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-24  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * server.c (handle_v_kill): Pass signal_pid to
+       kill_inferior if multi_process is zero.
+
 2009-06-23  Aleksandar Ristovski  <aristovski@qnx.com>
 
        * server.c (process_serial_event): Add support for Z0 and Z1 packet.
index 566e47dc2223ec5d33f66b5a0f5fc437a4e055e2..01928c9a6fe3c931a496f15f165a79cc64dec0b8 100644 (file)
@@ -1523,8 +1523,10 @@ handle_v_kill (char *own_buf)
 {
   int pid;
   char *p = &own_buf[6];
-
-  pid = strtol (p, NULL, 16);
+  if (multi_process)
+    pid = strtol (p, NULL, 16);
+  else
+    pid = signal_pid;
   if (pid != 0 && kill_inferior (pid) == 0)
     {
       last_status.kind = TARGET_WAITKIND_SIGNALLED;
This page took 0.036197 seconds and 4 git commands to generate.