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>
This commit is contained in:
James Rose
2011-05-31 10:20:42 -07:00
committed by David 'Digit' Turner
parent bf29647964
commit 3435fc600d
5 changed files with 40 additions and 10 deletions

View File

@@ -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)
{
}