Skip to content

Commit

Permalink
[misc] preprocessed i8c input file for map_lwp2thr etc
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Benson committed Nov 16, 2015
1 parent a6f7459 commit cbf7b32
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions map_lwp2thr.i8
Original file line number Diff line number Diff line change
@@ -0,0 +1,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);
}

0 comments on commit cbf7b32

Please sign in to comment.