[patch] SYS_gettid

Pedro Alves pedro@codesourcery.com
Wed Dec 14 17:45:00 GMT 2011


On Tuesday 13 December 2011 02:12:36, Yao Qi wrote:
> 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?

This is the only little platform specific bit I left in
tracepoint.c, and lo, it breaks.  :-)

Okay.

-- 
Pedro Alves



More information about the Gdb-patches mailing list