diff options
author | Pierre Muller <muller@sourceware.org> | 2009-06-24 15:23:32 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2009-06-24 15:23:32 +0000 |
commit | 0f54c268db73bed9aa42b3cd4e50af2a26f1e0c4 (patch) | |
tree | 161abd71807b6c33c3d10dee9cee00e06b87f924 /gdb | |
parent | 1307d6cd4a961a2cd31a1ff63d8cd8dcf27b470a (diff) | |
download | gdb-0f54c268db73bed9aa42b3cd4e50af2a26f1e0c4.zip gdb-0f54c268db73bed9aa42b3cd4e50af2a26f1e0c4.tar.gz gdb-0f54c268db73bed9aa42b3cd4e50af2a26f1e0c4.tar.bz2 |
* server.c (handle_v_kill): Pass signal_pid to
kill_inferior if multi_process is zero.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 6d60590..a43a86f 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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. diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 566e47d..01928c9 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -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; |