This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] SYS_gettid


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]