diff options
author | David Xu <davidxu@FreeBSD.org> | 2004-08-21 11:49:19 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2004-08-21 11:49:19 +0000 |
commit | 0dabb2c8a032abf0975eac9d91c3c58cc3bc4ae3 (patch) | |
tree | 44e15e4c23e822fe437d5cddf76ffa02da414988 /lib/libpthread/thread/thr_init.c | |
parent | 5d492a0d634c9904e135c8ce9816f75d893e82b1 (diff) | |
download | src-0dabb2c8a032abf0975eac9d91c3c58cc3bc4ae3.tar.gz src-0dabb2c8a032abf0975eac9d91c3c58cc3bc4ae3.zip |
Pull debug symbols in for statically linked binary.
Reviewed by: desichen
Notes
Notes:
svn path=/head/; revision=134115
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
-rw-r--r-- | lib/libpthread/thread/thr_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index baee1bbd89c3..719195f8cc61 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -73,6 +73,7 @@ int __pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *); int __pthread_mutex_lock(pthread_mutex_t *); int __pthread_mutex_trylock(pthread_mutex_t *); void _thread_init_hack(void); +extern int _thread_state_running; static void init_private(void); static void init_main_thread(struct pthread *thread); @@ -224,6 +225,9 @@ _libpthread_init(struct pthread *curthread) if ((references[0] == NULL) || (libgcc_references[0] == NULL)) PANIC("Failed loading mandatory references in _thread_init"); + /* Pull debug symbols in for static binary */ + _thread_state_running = PS_RUNNING; + /* * Check the size of the jump table to make sure it is preset * with the correct number of entries. |