2 #include <sys/ptrace.h>
3 #include "sysdep/tls.h"
5 /* TLS support - we basically rely on the host's one.*/
7 #ifndef PTRACE_GET_THREAD_AREA
8 #define PTRACE_GET_THREAD_AREA 25
11 #ifndef PTRACE_SET_THREAD_AREA
12 #define PTRACE_SET_THREAD_AREA 26
15 int os_set_thread_area(user_desc_t
*info
, int pid
)
19 ret
= ptrace(PTRACE_SET_THREAD_AREA
, pid
, info
->entry_number
,
20 (unsigned long) info
);
26 int os_get_thread_area(user_desc_t
*info
, int pid
)
30 ret
= ptrace(PTRACE_GET_THREAD_AREA
, pid
, info
->entry_number
,
31 (unsigned long) info
);