Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 11 Oct 1999 20:17:13 +0000 (20:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 11 Oct 1999 20:17:13 +0000 (20:17 +0000)
1999-10-11  Cristian Gafton  <gafton@redhat.com>

        * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Declare
SA_SIGINFO.

ChangeLog
FAQ
FAQ.in
linuxthreads_db/ChangeLog
linuxthreads_db/td_ta_thr_iter.c
linuxthreads_db/td_thr_get_info.c
sysdeps/unix/sysv/linux/alpha/bits/sigaction.h

index 4ee3d2d027a529417be884175a8e79b4967c0943..cb501d78d13cad6698c9028b991e87eaf820cc50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-10-11  Cristian Gafton  <gafton@redhat.com> 
+        * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Declare
+       SA_SIGINFO.
 1999-10-10  Ulrich Drepper  <drepper@cygnus.com>
 
        * stdlib/atexit.c (initial): New variable.  Use to initialize
diff --git a/FAQ b/FAQ
index 0ab96c7aadc5eb11e0ca35ad7e1c974069d25dcc..610fa98c4790570fee44bf9fd84bda02a4c8c9c2 100644 (file)
--- a/FAQ
+++ b/FAQ
@@ -1116,7 +1116,7 @@ The glibc-compat add-on will provide the libcompat.a library, the older
 nss modules, and a few other files.  Together, they should make it
 possible to do development with old static libraries on a glibc 2.1
 system.  This add-on is still in development.  You can get it from
-       <ftp://alpha.gnu.org/gnu/glibc-compat-2.1.tar.gz>
+       <ftp://alpha.gnu.org/gnu/glibc/glibc-compat-2.1.tar.gz>
 but please keep in mind that it is experimental.
 
 
diff --git a/FAQ.in b/FAQ.in
index 22b4d900038ef691fd136f85d5660916758df36c..4c6e18c1d0094ea1bad8a090b17511d4b3ef8d7f 100644 (file)
--- a/FAQ.in
+++ b/FAQ.in
@@ -914,7 +914,7 @@ The glibc-compat add-on will provide the libcompat.a library, the older
 nss modules, and a few other files.  Together, they should make it
 possible to do development with old static libraries on a glibc 2.1
 system.  This add-on is still in development.  You can get it from
-       <ftp://alpha.gnu.org/gnu/glibc-compat-2.1.tar.gz>
+       <ftp://alpha.gnu.org/gnu/glibc/glibc-compat-2.1.tar.gz>
 but please keep in mind that it is experimental.
 
 ??     Why is extracting files via tar so slow?
index befb611a4f499040af12f282bd25f42c3c7ee37a..76dbb17da88ca61c5b9c6845e314fa3c2c2fd098 100644 (file)
@@ -1,3 +1,9 @@
+1999-10-11  Ulrich Drepper  <drepper@cygnus.com>
+
+       * td_thr_get_info.c: Initialize ti_type field.
+
+       * td_ta_thr_iter.c: Also report the manager thread.
+
 1999-10-08  Andreas Jaeger  <aj@suse.de>
 
        * thread_db.h: Fix typos in comments.
index ffb4ef23ea2c51f14245feb05540e888a66dcf33..e25230c2b418491e119ea946a35203f5d805d8f8 100644 (file)
@@ -37,10 +37,6 @@ td_ta_thr_iter (const td_thragent_t *ta, td_thr_iter_f *callback,
     {
       struct pthread_handle_struct phc;
 
-      if (cnt == 1)
-       /* Skip the manager thread.  */
-       continue;
-
       if (ps_pdread (ta->ph, handles, &phc,
                     sizeof (struct pthread_handle_struct)) != PS_OK)
        return TD_ERR;  /* XXX Other error value?  */
index 90015fb191a0116a494e92c76ccfee343b91329d..61d0b9ead5fa340ed008355d03072b393cc93147 100644 (file)
@@ -43,6 +43,10 @@ td_thr_get_info (const td_thrhandle_t *th, td_thrinfo_t *infop)
   infop->ti_tid = pds.p_tid;
   infop->ti_tls = (char *) pds.p_specific;
   infop->ti_pri = pds.p_priority;
+  /* The first thread (0 being the initial one) is the manager thread
+     Mark it appropriately.  */
+  infop->ti_type = ((pds.p_tid % th->th_ta_p->pthread_threads_max) == 1
+                   ? TD_THR_SYSTEM : TD_THR_USER);
 
   /* We can get the following information only if the thread descriptor
      in the target processor is large enough, i.e., comes from a recent
index ae1249af51338bdcfc83a9af4712b22a9ab3cd34..2f8b3bad3c63f06aa5674ea3e58056685eca5fa1 100644 (file)
@@ -36,6 +36,8 @@ struct sigaction
 
 /* Bits in `sa_flags'.  */
 #define        SA_NOCLDSTOP  0x00000004 /* Don't send SIGCHLD when children stop.  */
+#define SA_SIGINFO    0x00000040 /* Invoke signal-catching function with three
+                                   arguments instead of one. */
 #ifdef __USE_MISC
 # define SA_ONSTACK   0x00000001 /* Use signal stack by using `sa_restorer'. */
 # define SA_RESTART   0x00000002 /* Restart syscall on signal return.  */