-
Notifications
You must be signed in to change notification settings - Fork 2
/
map_lwp2thr.i8
56 lines (45 loc) · 1.34 KB
/
map_lwp2thr.i8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 1 "infinity_map_lwp2thr.i8"
# 1 "/home/gary/work/glibc/infinity/src/nptl//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "../include/stdc-predef.h" 1
# 1 "<command-line>" 2
# 1 "/home/gary/work/glibc/infinity/build64/libc-modules.h" 1
# 1 "<command-line>" 2
# 1 "./../include/libc-symbols.h" 1
# 60 "./../include/libc-symbols.h"
# 1 "/home/gary/work/glibc/infinity/build64/config.h" 1
# 61 "./../include/libc-symbols.h" 2
# 725 "./../include/libc-symbols.h"
# 1 "../sysdeps/generic/symbol-hacks.h" 1
# 726 "./../include/libc-symbols.h" 2
# 1 "<command-line>" 2
# 1 "infinity_map_lwp2thr.i8"
# 19 "infinity_map_lwp2thr.i8"
# 1 "/home/gary/work/glibc/infinity/build64/pthread-infinity.h" 1
# 20 "infinity_map_lwp2thr.i8" 2
# 1 "/home/gary/work/glibc/infinity/build64/tls-infinity.h" 1
# 21 "infinity_map_lwp2thr.i8" 2
# 1 "infinity_lookup_th_unique_cta.i8" 1
# 28 "infinity_lookup_th_unique_cta.i8"
int, addr
libpthread::__lookup_th_unique (int lwpid)
{
err, result = i8core::ps_get_thread_area (lwpid, 25);
if (err != 0)
return 1, undefined;
return 0, result;
}
# 24 "infinity_map_lwp2thr.i8" 2
# 37 "infinity_map_lwp2thr.i8"
int, addr
libpthread::map_lwp2thr (int lwpid)
{
if (deref (__stack_user, 0) == NULL)
{
if (i8core::ps_getpid () != lwpid)
return 1, undefined;
return 0, NULL;
}
return __lookup_th_unique (lwpid);
}