[patch] SYS_gettid

Yao Qi yao@codesourcery.com
Tue Dec 13 02:34:00 GMT 2011


This patch does two things
  1) include <sys/syscall.h> in which SYS_gettid is defined, otherwise
helper_thread_id has no change to set, and in-proc-agent will go to
endless loop (in tracepoint.c:gdb_ust_init).
  2) remove preprocessor conditional.  If SYS_gettid is not defined,
compiler can emit an error, which is better than leaving
helper_thread_id unset and get an error at runtime.

With this patch, program doesn't hang there at start up.  OK for mainline?

-- 
Yao (齐尧)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-include-syscall.h.patch
Type: text/x-patch
Size: 807 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20111213/3b3ed7ed/attachment.bin>


More information about the Gdb-patches mailing list