Re: [PATCH] NPTL/arc: notify kernel of the TP value

2015-07-05 Thread Bernhard Reutner-Fischer
On Tue, Jun 30, 2015 at 05:46:56PM +0530, Vineet Gupta wrote: Native gdb makes a ptrace (GET_THREAD_AREA) which needs to return the TP. however when libc sets up TP reg (for main thread), it doesn't call arc_settls syscall so kernel doesn't know of TP register details (moreso because clone

[PATCH] NPTL/arc: notify kernel of the TP value

2015-06-30 Thread Vineet Gupta
Native gdb makes a ptrace (GET_THREAD_AREA) which needs to return the TP. however when libc sets up TP reg (for main thread), it doesn't call arc_settls syscall so kernel doesn't know of TP register details (moreso because clone doesnt have SETTLS flag) Note that kernel doesn't know about r25