[uClibc-cvs] uClibc/libpthread/linuxthreads manager.c,1.3,1.4 specific.c,1.2,1.3

Erik Andersen andersen at codepoet.org
Thu Jan 23 07:55:04 UTC 2003


Update of /var/cvs/uClibc/libpthread/linuxthreads
In directory winder:/tmp/cvs-serv514/linuxthreads

Modified Files:
	manager.c specific.c 
Log Message:
Per patch from Nathan Field at ghs.com, add a couple of variables 
needed to make gdb happy when debugging threadded apps.


Index: manager.c
===================================================================
RCS file: /var/cvs/uClibc/libpthread/linuxthreads/manager.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- manager.c	29 Oct 2002 11:21:35 -0000	1.3
+++ manager.c	23 Jan 2003 07:55:00 -0000	1.4
@@ -56,6 +56,10 @@
 /* For debugging purposes put the maximum number of threads in a variable.  */
 const int __linuxthreads_pthread_threads_max = PTHREAD_THREADS_MAX;
 
+/* Put the size of the pthread_descr in a variable to make gdb happy. */
+const int __linuxthreads_pthread_sizeof_descr
+  = sizeof(struct _pthread_descr_struct);
+
 /* Indicate whether at least one thread has a user-defined stack (if 1),
    or if all threads have stacks supplied by LinuxThreads (if 0). */
 int __pthread_nonstandard_stacks;

Index: specific.c
===================================================================
RCS file: /var/cvs/uClibc/libpthread/linuxthreads/specific.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- specific.c	6 Aug 2002 14:49:12 -0000	1.2
+++ specific.c	23 Jan 2003 07:55:00 -0000	1.3
@@ -27,6 +27,9 @@
 static struct pthread_key_struct pthread_keys[PTHREAD_KEYS_MAX] =
   { { 0, NULL } };
 
+/* Put the maximum number of keys in a variable to make gdb happy. */
+const int __linuxthreads_pthread_keys_max = PTHREAD_KEYS_MAX;
+
 /* Mutex to protect access to pthread_keys */
 
 static pthread_mutex_t pthread_keys_mutex = PTHREAD_MUTEX_INITIALIZER;




More information about the uClibc-cvs mailing list