------- Additional Comments From aph at gcc dot gnu dot org 2005-02-11 12:07 ------- This is a workaround for everyone that needs to use debugging on HEAD.
If we can't get this bug fixed soon something like this will need to be committed. Index: include/posix-threads.h =================================================================== RCS file: /cvs/gcc/gcc/libjava/include/posix-threads.h,v retrieving revision 1.26 diff -u -r1.26 posix-threads.h --- include/posix-threads.h 11 Oct 2004 17:49:39 -0000 1.26 +++ include/posix-threads.h 11 Feb 2005 12:05:52 -0000 @@ -204,12 +204,10 @@ _Jv_Thread_t *_Jv_ThreadInitData (java::lang::Thread *thread); void _Jv_ThreadDestroyData (_Jv_Thread_t *data); -inline java::lang::Thread * -_Jv_ThreadCurrent (void) -{ - extern pthread_key_t _Jv_ThreadKey; - return (java::lang::Thread *) pthread_getspecific (_Jv_ThreadKey); -} + +extern pthread_key_t _Jv_ThreadKey; +#define _Jv_ThreadCurrent() \ + ((java::lang::Thread *) pthread_getspecific (_Jv_ThreadKey)) #ifdef JV_HASH_SYNCHRONIZATION // Should be specialized to just load the "current thread" register @@ -339,12 +337,9 @@ #endif /* JV_HASH_SYNCHRONIZATION */ -inline _Jv_Thread_t * -_Jv_ThreadCurrentData (void) -{ - extern pthread_key_t _Jv_ThreadDataKey; - return (_Jv_Thread_t *) pthread_getspecific (_Jv_ThreadDataKey); -} +extern pthread_key_t _Jv_ThreadDataKey; +#define _Jv_ThreadCurrentData() \ + ((_Jv_Thread_t *) pthread_getspecific (_Jv_ThreadDataKey)) inline void _Jv_ThreadYield (void) -- What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19769