aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads_db
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-11 01:05:26 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-11 01:05:26 +0000
commit7ad6d73d6fb83394f97f93ce9472303117bdf020 (patch)
tree9cfc41b6f8fa75303b62d3ec59a298e7092ab85f /linuxthreads_db
parent1fc6f81397fefb17827fcaf9ab0acd5c6d327dc9 (diff)
downloadglibc-7ad6d73d6fb83394f97f93ce9472303117bdf020.zip
glibc-7ad6d73d6fb83394f97f93ce9472303117bdf020.tar.gz
glibc-7ad6d73d6fb83394f97f93ce9472303117bdf020.tar.bz2
Update.
* math/fenv.h: Include bits/fenvinline.h if optimizing. * sysdeps/powerpc/fpu/bits/fenv.h: Remove inline functions. Moved to.. * sysdeps/powerpc/fpu/bits/fenvinline.h: ...here. New file. * sysdeps/generic/bits/fenv.h: New file. 1999-11-10 Ulrich Drepper <drepper@cygnus.com>
Diffstat (limited to 'linuxthreads_db')
-rw-r--r--linuxthreads_db/ChangeLog6
-rw-r--r--linuxthreads_db/td_ta_map_lwp2thr.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/linuxthreads_db/ChangeLog b/linuxthreads_db/ChangeLog
index f450d48..d178e84 100644
--- a/linuxthreads_db/ChangeLog
+++ b/linuxthreads_db/ChangeLog
@@ -1,3 +1,9 @@
+1999-11-10 Ulrich Drepper <drepper@cygnus.com>
+
+ * td_ta_map_lwp2thr.c: If p_pid field is zero, this is before the
+ thread library is initialized and we get the PID from the
+ debugger.
+
1999-11-08 Ulrich Drepper <drepper@cygnus.com>
* td_thr_get_info.c: Make sure ti_lid is never zero.
diff --git a/linuxthreads_db/td_ta_map_lwp2thr.c b/linuxthreads_db/td_ta_map_lwp2thr.c
index f51bc18..0558f63 100644
--- a/linuxthreads_db/td_ta_map_lwp2thr.c
+++ b/linuxthreads_db/td_ta_map_lwp2thr.c
@@ -67,7 +67,7 @@ td_ta_map_lwp2thr (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th)
if (ps_pdread (ta->ph, phc[cnt].h_descr, &pds, sizeof_descr) != PS_OK)
return TD_ERR; /* XXX Other error value? */
- if (pds.p_pid == lwpid)
+ if (pds.p_pid ?: ps_getpid (ta->ph) == lwpid)
{
/* Found it. Now fill in the `td_thrhandle_t' object. */
th->th_ta_p = (td_thragent_t *) ta;