gdb/gdbserver/
authorYao Qi <yao@codesourcery.com>
Thu, 15 Dec 2011 12:40:03 +0000 (12:40 +0000)
committerYao Qi <yao@codesourcery.com>
Thu, 15 Dec 2011 12:40:03 +0000 (12:40 +0000)
* tracepoint.c: Include sys/syscall.h.
(gdb_ust_thread): Remove preprocessor conditional.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index c7ceba3839be8f8657cefb4ebc011a741fda8121..a5db5729225dcedd1c435235e52c1e9aed503ab4 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-15  Yao Qi  <yao@codesourcery.com>
+
+       * tracepoint.c: Include sys/syscall.h.
+       (gdb_ust_thread): Remove preprocessor conditional.
+
 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
 
        * linux-low.c (linux_detach_one_lwp): Call
index 5f7177f2d078d9d9360b1fcacdd86b8bce812dd2..fa4c317ccc79af6347746df3b934d07cfaaafefa 100644 (file)
@@ -8029,6 +8029,8 @@ cmd_qtstmat (char *packet)
   return -1;
 }
 
+#include <sys/syscall.h>
+
 static void *
 gdb_ust_thread (void *arg)
 {
@@ -8038,10 +8040,8 @@ gdb_ust_thread (void *arg)
     {
       listen_fd = gdb_ust_socket_init ();
 
-#ifdef SYS_gettid
       if (helper_thread_id == 0)
        helper_thread_id = syscall (SYS_gettid);
-#endif
 
       if (listen_fd == -1)
        {