aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-11 20:17:13 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-11 20:17:13 +0000
commitdf08cc56eb0a050bd1d7cf569d78d4f9d2a20964 (patch)
tree225ca6e6aaf9c066b273ba7f1f6975f910d36947
parentbca9f4abe86e3ba2d84cb5ff96d55fe9d5afc722 (diff)
downloadglibc-df08cc56eb0a050bd1d7cf569d78d4f9d2a20964.zip
glibc-df08cc56eb0a050bd1d7cf569d78d4f9d2a20964.tar.gz
glibc-df08cc56eb0a050bd1d7cf569d78d4f9d2a20964.tar.bz2
Update.
1999-10-11 Cristian Gafton <gafton@redhat.com> * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Declare SA_SIGINFO.
-rw-r--r--ChangeLog5
-rw-r--r--FAQ2
-rw-r--r--FAQ.in2
-rw-r--r--linuxthreads_db/ChangeLog6
-rw-r--r--linuxthreads_db/td_ta_thr_iter.c4
-rw-r--r--linuxthreads_db/td_thr_get_info.c4
-rw-r--r--sysdeps/unix/sysv/linux/alpha/bits/sigaction.h2
7 files changed, 19 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ee3d2d..cb501d7 100644
--- 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 0ab96c7..610fa98 100644
--- 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 22b4d90..4c6e18c 100644
--- 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?
diff --git a/linuxthreads_db/ChangeLog b/linuxthreads_db/ChangeLog
index befb611..76dbb17 100644
--- a/linuxthreads_db/ChangeLog
+++ b/linuxthreads_db/ChangeLog
@@ -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.
diff --git a/linuxthreads_db/td_ta_thr_iter.c b/linuxthreads_db/td_ta_thr_iter.c
index ffb4ef2..e25230c 100644
--- a/linuxthreads_db/td_ta_thr_iter.c
+++ b/linuxthreads_db/td_ta_thr_iter.c
@@ -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? */
diff --git a/linuxthreads_db/td_thr_get_info.c b/linuxthreads_db/td_thr_get_info.c
index 90015fb..61d0b9e 100644
--- a/linuxthreads_db/td_thr_get_info.c
+++ b/linuxthreads_db/td_thr_get_info.c
@@ -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
diff --git a/sysdeps/unix/sysv/linux/alpha/bits/sigaction.h b/sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
index ae1249a..2f8b3ba 100644
--- a/sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
+++ b/sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
@@ -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. */