From: Yao Qi Date: Thu, 15 Dec 2011 12:40:03 +0000 (+0000) Subject: gdb/gdbserver/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82067193611db4c4e4cc8fcd8a243e787c0fc2e3;p=binutils-gdb.git gdb/gdbserver/ * tracepoint.c: Include sys/syscall.h. (gdb_ust_thread): Remove preprocessor conditional. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c7ceba3839b..a5db5729225 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2011-12-15 Yao Qi + + * tracepoint.c: Include sys/syscall.h. + (gdb_ust_thread): Remove preprocessor conditional. + 2011-12-14 Pedro Alves * linux-low.c (linux_detach_one_lwp): Call diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 5f7177f2d07..fa4c317ccc7 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -8029,6 +8029,8 @@ cmd_qtstmat (char *packet) return -1; } +#include + 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) {