diff options
author | Yao Qi <yao@codesourcery.com> | 2011-12-15 12:40:03 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-12-15 12:40:03 +0000 |
commit | 82067193611db4c4e4cc8fcd8a243e787c0fc2e3 (patch) | |
tree | a86eca45c4c351c806048b1148ecfaa276d0b7ad /gdb | |
parent | 499963bcf163aead73b20a40fe0362b56bc1137f (diff) | |
download | gdb-82067193611db4c4e4cc8fcd8a243e787c0fc2e3.zip gdb-82067193611db4c4e4cc8fcd8a243e787c0fc2e3.tar.gz gdb-82067193611db4c4e4cc8fcd8a243e787c0fc2e3.tar.bz2 |
gdb/gdbserver/
* tracepoint.c: Include sys/syscall.h.
(gdb_ust_thread): Remove preprocessor conditional.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c7ceba3..a5db572 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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 diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 5f7177f..fa4c317 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -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) { |