diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-08-21 11:49:19 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-08-21 11:49:19 +0000 |
commit | f62c438c721f26878dd79b4fbfa9e59d813e5c87 (patch) | |
tree | 44e15e4c23e822fe437d5cddf76ffa02da414988 /lib/libpthread | |
parent | bbb9789bc5aaa3f300e24b24ad7f5f4cbb80ed94 (diff) | |
download | FreeBSD-src-f62c438c721f26878dd79b4fbfa9e59d813e5c87.zip FreeBSD-src-f62c438c721f26878dd79b4fbfa9e59d813e5c87.tar.gz |
Pull debug symbols in for statically linked binary.
Reviewed by: desichen
Diffstat (limited to 'lib/libpthread')
-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 baee1bb..719195f 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. |