about summary refs log tree commit diff
path: root/linuxthreads_db/td_thr_get_info.c
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 /linuxthreads_db/td_thr_get_info.c
parentbca9f4abe86e3ba2d84cb5ff96d55fe9d5afc722 (diff)
downloadglibc-df08cc56eb0a050bd1d7cf569d78d4f9d2a20964.tar.gz
glibc-df08cc56eb0a050bd1d7cf569d78d4f9d2a20964.tar.xz
glibc-df08cc56eb0a050bd1d7cf569d78d4f9d2a20964.zip
Update.
1999-10-11  Cristian Gafton  <gafton@redhat.com> 
 
        * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Declare
	SA_SIGINFO.
 
Diffstat (limited to 'linuxthreads_db/td_thr_get_info.c')
-rw-r--r--linuxthreads_db/td_thr_get_info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linuxthreads_db/td_thr_get_info.c b/linuxthreads_db/td_thr_get_info.c
index 90015fb191..61d0b9ead5 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