Fix gdbserver SPU build
authorPedro Alves <palves@redhat.com>
Mon, 24 Aug 2015 16:58:22 +0000 (17:58 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 24 Aug 2015 16:58:22 +0000 (17:58 +0100)
Ref: https://sourceware.org/ml/gdb-patches/2015-08/msg00675.html

 gdbserver/spu-low.c: In function 'spu_request_interrupt':
 gdbserver/spu-low.c:639: error: incompatible type for argument 1 of 'ptid_get_lwp'

gdb/gdbserver/ChangeLog:
2015-08-24  Pedro Alves  <palves@redhat.com>

* spu-low.c (spu_request_interrupt): Use lwpid_of instead of
ptid_get_lwp.

gdb/gdbserver/ChangeLog
gdb/gdbserver/spu-low.c

index cd5e046ce52b866e8505422f68e931a3f9046c0d..12d8bb3aad91dcef041490ab7084d93eb543cbcf 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-24  Pedro Alves  <palves@redhat.com>
+
+       * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
+       ptid_get_lwp.
+
 2015-08-21  Pedro Alves  <palves@redhat.com>
 
        * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
index 2ca91597924f984b5fe9c9528936e4c081bf7f79..a110a0e76ff85d089ac4cccce2c3c4eee70fb31a 100644 (file)
@@ -636,7 +636,7 @@ spu_request_interrupt (void)
 {
   struct thread_info *thr = get_first_thread ();
 
-  syscall (SYS_tkill, ptid_get_lwp (thr), SIGINT);
+  syscall (SYS_tkill, lwpid_of (thr), SIGINT);
 }
 
 static struct target_ops spu_target_ops = {