aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/ptrace.c')
-rw-r--r--libc/bionic/ptrace.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/bionic/ptrace.c b/libc/bionic/ptrace.c
index 863fac73f..0bb1acd78 100644
--- a/libc/bionic/ptrace.c
+++ b/libc/bionic/ptrace.c
@@ -57,7 +57,12 @@ long ptrace(int request, pid_t pid, void * addr, void * data)
/*
* Hook for gdb to get notified when a thread is created
*/
-void _thread_created_hook(pid_t thread_id) __attribute__((noinline));
-void _thread_created_hook(pid_t thread_id)
+#ifdef __i386__
+#define ATTRIBUTES __attribute__((noinline)) __attribute__((fastcall))
+#else
+#define ATTRIBUTES __attribute__((noinline))
+#endif
+
+void ATTRIBUTES _thread_created_hook(pid_t thread_id)
{
}