summaryrefslogtreecommitdiffstats
path: root/libc/bionic/ptrace.c
diff options
context:
space:
mode:
authorJames Rose <james.rose@intel.com>2011-05-31 10:20:42 -0700
committerDavid 'Digit' Turner <digit@google.com>2011-07-07 22:46:16 +0200
commit3435fc600d8d78b63a355b519667c23f56d6611b (patch)
tree131bc5304ff7554ccbc5a74e522e77146a5f645a /libc/bionic/ptrace.c
parentbf296479646e97108174a13b74a6eb11f1bea713 (diff)
downloadbionic-3435fc600d8d78b63a355b519667c23f56d6611b.zip
bionic-3435fc600d8d78b63a355b519667c23f56d6611b.tar.gz
bionic-3435fc600d8d78b63a355b519667c23f56d6611b.tar.bz2
bionic, libthread_db x86 fixes
Orig-Change-Id: I3be997f5f1f6a894a3c200d4f325cf3bfd428c66 Author: James Rose <james.rose@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
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 863fac7..0bb1acd 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)
{
}