]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 13 Apr 2001 04:12:32 +0000 (04:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 13 Apr 2001 04:12:32 +0000 (04:12 +0000)
2001-04-12  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/ia64/Dist: Add elf/entry.h.

* iconvdata/Makefile (distribute): Add TESTS2.

ChangeLog
iconvdata/Makefile
linuxthreads_db/ChangeLog
linuxthreads_db/td_ta_map_id2thr.c
linuxthreads_db/td_thr_validate.c
sysdeps/ia64/Dist

index 11180735456e559ab55092d4d1d48e6d5550ec51..40804526b33e0bfaad68c3cba6056f84b3daacdc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-12  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/ia64/Dist: Add elf/entry.h.
+
+       * iconvdata/Makefile (distribute): Add TESTS2.
+
 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address):
index 7c9c628485e77c38108c9f18c0ab486df94a4b49..e9ed5ed577d0cd34a84efc91354e026e1e5e4d18 100644 (file)
@@ -96,7 +96,7 @@ LDFLAGS-libISOIR165.so = -Wl,-soname,$(@F)
 distribute := gconv-modules extra-module.mk gap.awk gaptab.awk             \
              gen-8bit.sh gen-8bit-gap.sh gen-8bit-gap-1.sh                 \
              TESTS $(filter-out testdata/CVS%, $(wildcard testdata/*))     \
-             run-iconv-test.sh tst-tables.sh tst-table.sh                  \
+             TESTS2 run-iconv-test.sh tst-tables.sh tst-table.sh           \
              tst-table-charmap.sh tst-table-from.c tst-table-to.c          \
              EUC-JP.irreversible ISIRI-3342.irreversible SJIS.irreversible \
              EUC-KR.irreversible BIG5HKSCS.irreversible BIG5.irreversible  \
index cdaab18f0c227a8d05470b7fc57c6d61d656d9ca..e05a94f9f50ef9d5f97db91850046f1deeaa7437 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-12  Ulrich Drepper  <drepper@redhat.com>
+
+       * td_ta_map_id2thr.c: If thread terminated return TD_NOTHR.
+       * td_thr_validate.c: Likewise.
+
 2001-04-04  Ulrich Drepper  <drepper@redhat.com>
 
        * td_thr_getfpregs.c: If p_pid is zero use ps_getpid().
index 6fb1ba96aa0da5734a1aee8e681a885155865eb2..7c9c7c14fdea30c38cf7db0592744f18e3f33ada 100644 (file)
@@ -1,5 +1,5 @@
 /* Map thread ID to thread handle.
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
 
@@ -55,6 +55,9 @@ td_ta_map_id2thr (const td_thragent_t *ta, pthread_t pt, td_thrhandle_t *th)
   if (pds.p_tid != pt)
     return TD_BADTH;
 
+  if (pds.p_terminated != 0)
+    return TD_NOTHR;
+
   /* Create the `td_thrhandle_t' object.  */
   th->th_ta_p = (td_thragent_t *) ta;
   th->th_unique = phc.h_descr;
index 81c3b50214e0fda0d8c6462eb0326c52034e23ef..7ca3af20b60c8d61fd501973eab8f8af1a179cc1 100644 (file)
@@ -1,5 +1,5 @@
 /* Validate a thread handle.
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
 
@@ -41,9 +41,15 @@ td_thr_validate (const td_thrhandle_t *th)
 
       if (phc.h_descr != NULL && phc.h_descr == th->th_unique)
        {
+         struct _pthread_descr_struct pds;
+
+         if (ps_pdread (th->th_ta_p->ph, phc.h_descr, &pds,
+                        th->th_ta_p->sizeof_descr) != PS_OK)
+           return TD_ERR;      /* XXX Other error value?  */
+
          /* XXX There should be another test using the TID but this is
             currently not available.  */
-         return TD_OK;
+         return pds.p_terminated != 0 ? TD_NOTHR : TD_OK;
        }
     }
 
index ebc9cce2709054dc57f9747a611a65fbd221be6f..3107562b3ff7480558611dd7d4e5b96c8dc62561 100644 (file)
@@ -1,5 +1,6 @@
 _mcount.S
 dl-symaddr.c
 dl-fptr.c
+elf/entry.h
 ieee754.h
 softpipe.h
This page took 0.053197 seconds and 5 git commands to generate.