summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-04 20:56:01 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-04 20:56:01 +0000
commit27b9ce8b12c33868b29335b8faf4f3770d347c26 (patch)
tree4ffd04c6ca3514401cb4d2de582e22701d603237
parent4afd53acf1f42b233c613ca43cca28dd3c676cf0 (diff)
Seperate pthread debugging from uClibc debugging. They are used
for different things.
-rw-r--r--extra/Configs/Config.in17
-rw-r--r--libpthread/Makefile2
2 files changed, 18 insertions, 1 deletions
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index 112369f7e..5baad8a32 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -145,6 +145,23 @@ config UCLIBC_HAS_THREADS
If your applications require pthreads, answer Y.
+config PTHREADS_DEBUG_SUPPORT
+ bool "Build pthreads debugging support"
+ default n
+ depends on UCLIBC_HAS_THREADS
+ help
+ Say Y here if you wish to be able to debug applications that use
+ uClibc's pthreads library. By enabling this option, a library
+ named libthread_db will be built. This library will be dlopen()'d
+ by gdb and will allow gdb to debug the threads in your application.
+
+ IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
+ you must compile gdb with uClibc in order for pthread debugging to
+ work properly.
+
+ If you are doing development and want to debug applications using
+ uClibc's pthread library, answer Y. Otherwise, answer N.
+
config UCLIBC_HAS_LFS
bool "Large File Support"
default y
diff --git a/libpthread/Makefile b/libpthread/Makefile
index 89d039246..ac9f4a20c 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -31,7 +31,7 @@ LIBTHREAD_DB_SHARED_FULLNAME=libthread_db-$(MAJOR_VERSION).$(MINOR_VERSION).$(SU
DIRS=
ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
DIRS+=linuxthreads
-ifeq ($(strip $(DODEBUG)),y)
+ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
DIRS+=linuxthreads_db
endif
endif