]> sourceware.org Git - glibc.git/commitdiff
* td_ta_thr_iter.c (iterate_thread_list): Handle special case of
authorRoland McGrath <roland@gnu.org>
Fri, 13 Dec 2002 09:46:02 +0000 (09:46 +0000)
committerRoland McGrath <roland@gnu.org>
Fri, 13 Dec 2002 09:46:02 +0000 (09:46 +0000)
uninitialized __stack_user (zeros), hard-wire just the main thread.

* td_thr_get_info.c (td_thr_get_info): Fix ti_lid initialization.

nptl_db/ChangeLog
nptl_db/td_thr_get_info.c

index 2a760bf642ef196c0c7ddae3ebfda923780ad03b..edeaaed8a57e1f5fe95e79c7b82cfa9a5aea6381 100644 (file)
@@ -1,3 +1,10 @@
+2002-12-12  Roland McGrath  <roland@redhat.com>
+
+       * td_ta_thr_iter.c (iterate_thread_list): Handle special case of
+       uninitialized __stack_user (zeros), hard-wire just the main thread.
+
+       * td_thr_get_info.c (td_thr_get_info): Fix ti_lid initialization.
+
 2002-12-06  Roland McGrath  <roland@redhat.com>
 
        * td_ta_event_getmsg.c (td_ta_event_getmsg): Write the NEXT pointer
index 131a783513778b267b99af04ff8cc884f91620cb..2dae8c5f7a151eb2c2bcdbc9a4cb88c0c2eb70dd 100644 (file)
@@ -53,7 +53,7 @@ td_thr_get_info (const td_thrhandle_t *th, td_thrinfo_t *infop)
     infop->ti_state = TD_THR_UNKNOWN;
 
   /* Initialization which are the same in both cases.  */
-  infop->ti_lid = ps_getpid (th->th_ta_p->ph); /* pds.tid should match */
+  infop->ti_lid = pds.tid ?: ps_getpid (th->th_ta_p->ph);
   infop->ti_ta_p = th->th_ta_p;
   infop->ti_startfunc = pds.start_routine;
   memcpy (&infop->ti_events, &pds.eventbuf.eventmask,
This page took 0.041218 seconds and 5 git commands to generate.