(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / linuxthreads_db / ChangeLog
blob338bf8207f401d98ca5f309a2915a1d88fd869d4
1 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
3         * thread_dbP.h (LOG): Use write instead of __libc_write.
5 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
7         * td_thr_tlsbase.c: Remove dl-tls.h include.  Don't use
8         TLS_TP_OFFSET in the #if, but TLS_TCB_SIZE == 0 ?:.
10 2004-03-12  Roland McGrath  <roland@redhat.com>
12         * td_thr_tlsbase.c [TLS_DTV_AT_TP && TLS_TP_OFFSET > 0]: Handle this
13         case (PowerPC) differently.
15 2003-11-25  Roland McGrath  <roland@redhat.com>
17         * td_symbol_list.c (symbol_list_arr) [HAVE_ASM_GLOBAL_DOT_NAME]:
18         Prepend "." to symbol names for functions.
20 2003-08-18  Daniel Jacobowitz  <drow@mvista.com>
22         * td_thr_getfpregs.c (td_thr_getfpregs): Use the main thread if
23         the descriptor is uninitialized.
24         * td_thr_getgregs.c (td_thr_getgregs): Likewise.
26 2003-03-15  Roland McGrath  <roland@redhat.com>
28         * thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER.
29         (td_thr_tlsbase): Declare it.
30         * td_thr_tlsbase.c: New file.
31         * Makefile (libthread_db-routines): Add it.
32         * Versions (libthread_db: GLIBC_2.3.3): New set, add td_thr_tlsbase.
33         * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use td_thr_tlsbase.
35 2003-02-27  Roland McGrath  <roland@redhat.com>
37         * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Handle TLS_DTV_AT_TP.
39         * td_ta_thr_iter.c (handle_descr) [!defined USE_TLS || !TLS_DTV_AT_TP]:
40         Conditionalize p_header use on this.
42 2003-01-29  Roland McGrath  <roland@redhat.com>
44         * td_ta_new.c (td_ta_new): Cap the `sizeof_descr' value read from the
45         inferior at `sizeof (struct _pthread_descr_struct)', since we use it
46         as a length in copies to our own structures.
48 2003-01-05  Ulrich Drepper  <drepper@redhat.com>
50         * Makefile (libthread_db.so-no-z-defs): Define.
52 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
54         * td_thr_tsd.c (td_thr_tsd): Read correct entry from pthread_keys
55         array.
57 2002-09-28  Andreas Jaeger  <aj@suse.de>
59         * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Fix reference to dtv.
61 2002-09-24  Roland McGrath  <roland@redhat.com>
63         * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Fetch just the
64         individual members we need, not the whole structures.
66 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
68         * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Change second
69         parameter to be the address of the link map in the inferior process.
70         * thread_db.h: Update prototype for td_thr_tls_get_addr.
72 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
74         * thread_dbP.h: Define LINUXTHREADS_VERSION.
75         * td_symbol_list.c (symbol_list_arr): Add LINUXTHREADS_VERSION string.
76         * td_ta_new.c (td_ta_new): After verifying the thread library is
77         there check version.
78         * thread_db.h: Add new error TD_VERSION.
80 2002-08-21  Roland McGrath  <roland@redhat.com>
82         * td_thr_tls_get_addr.c (td_thr_tls_get_addr): __attribute_used__ ->
83         __attribute__ ((unused)) for arguments.
85 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
87         * thread_dbP.h: Define LINUXTHREADS_INITIAL_REPORT_EVENTS.
88         * td_thr_event_enable.c (td_thr_event_enable): If th->th_unique is
89         null write to __linuxthreads_initial_report_events.
90         * td_symbol_list.c (symbol_list_arr): Add
91         __linuxthreads_initial_report_events.
93 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
95         * td_thr_clear_event.c: Yet more changes to help with TLS-enabled
96         libpthread.
97         * td_thr_event_enable.c: Likewise.
98         * td_thr_event_getmsg.c: Likewise.
99         * td_thr_set_event.c: Likewise.
100         * td_thr_setfpregs.c: Likewise.
101         * td_thr_setgregs.c: Likewise.
102         * td_thr_tsd.c: Likewise.
103         * td_thr_validate.c: Likewise.
105 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
107         * td_ta_thr_iter.c: Some more changes to enable using TLS-enabled
108         libpthread.
109         * td_thr_event_enable.c: Likewise.
110         * td_thr_getfpregs.c: Likewise.
111         * td_thr_getgregs.c: Likewise.
113 2002-07-14  Ulrich Drepper  <drepper@redhat.com>
115         * td_ta_map_id2thr.c: Begin fixing implementation for libpthread with
116         TLS support.
117         * td_ta_map_lwp2thr.c: Likewise.
118         * td_ta_thr_iter.c: Likewise.
119         * td_thr_get_info.c: Likewise.
121 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
123         * Versions [libthread_db] (GLIBC_2.3): Add td_thr_tls_get_addr.
125 2002-06-14  H.J. Lu  <hjl@gnu.org>
127         * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Don't include
128         "tls.h". Return TD_ERR if USE_TLS is not defined.
130 2002-06-12  Ulrich Drepper  <drepper@redhat.com>
132         * td_thr_tls_get_addr.c: New file.
133         * thread_db.h: Add prototype for td_thr_tls_get_addr.
134         * Makefile (libthread_db-routines): Add td_thr_tls_get_addr.
136 2002-03-03  Andreas Jaeger  <aj@suse.de>
138         * thread_dbP.h: Include <unistd.h> for prototypes of __libc_write.
140 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
142         * thread_dbP.h: Include descr.h instead of internals.h.
143         * td_ta_event_getmsg.c: Also include <linuxthreads/internals.h>.
144         * td_ta_map_id2thr.c: Likewise.
145         * td_ta_map_lwp2thr.c: Likewise.
146         * td_ta_thr_iter.c: Likewise.
147         * td_ta_tsd_iter.c: Likewise.
148         * td_thr_tsd.c: Likewise.
149         * td_thr_validate.c: Likewise.
151 2001-12-28  Andreas Jaeger  <aj@suse.de>
153         * td_init.c (td_init): Don't use __FUNCTION__ as literal.
154         * td_log.c (td_log): Likewise.
155         * td_ta_delete.c (td_ta_delete): Likewise.
156         * td_ta_get_nthreads.c (td_ta_get_nthreads): Likewise.
157         * td_ta_get_ph.c (td_ta_get_ph): Likewise.
158         * td_ta_map_id2thr.c (td_ta_map_id2thr): Likewise.
159         * td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Likewise.
160         * td_ta_new.c (td_ta_new): Likewise.
161         * td_ta_clear_event.c (td_ta_clear_event): Likewise.
162         * td_ta_enable_stats.c (td_ta_enable_stats): Likewise.
163         * td_ta_event_addr.c (td_ta_event_addr): Likewise.
164         * td_ta_event_getmsg.c (td_ta_event_getmsg): Likewise.
165         * td_ta_get_stats.c (td_ta_get_stats): Likewise.
166         * td_ta_reset_stats.c (td_ta_reset_stats): Likewise.
167         * td_ta_set_event.c (td_ta_set_event): Likewise.
168         * td_ta_setconcurrency.c (td_ta_setconcurrency): Likewise.
169         * td_ta_thr_iter.c (td_ta_thr_iter): Likewise.
170         * td_ta_tsd_iter.c (td_ta_tsd_iter): Likewise.
171         * td_thr_clear_event.c (td_thr_clear_event): Likewise.
172         * td_thr_dbresume.c (td_thr_dbresume): Likewise.
173         * td_thr_dbsuspend.c (td_thr_dbsuspend): Likewise.
174         * td_thr_event_enable.c (td_thr_event_enable): Likewise.
175         * td_thr_event_getmsg.c (td_thr_event_getmsg): Likewise.
176         * td_thr_get_info.c (td_thr_get_info): Likewise.
177         * td_thr_getfpregs.c (td_thr_getfpregs): Likewise.
178         * td_thr_getgregs.c (td_thr_getgregs): Likewise.
179         * td_thr_getxregs.c (td_thr_getxregs): Likewise.
180         * td_thr_getxregsize.c (td_thr_getxregsize): Likewise.
181         * td_thr_set_event.c (td_thr_set_event): Likewise.
182         * td_thr_setfpregs.c (td_thr_setfpregs): Likewise.
183         * td_thr_setgregs.c (td_thr_setgregs): Likewise.
184         * td_thr_setprio.c (td_thr_setprio): Likewise.
185         * td_thr_setsigpending.c (td_thr_setsigpending): Likewise.
186         * td_thr_setxregs.c (td_thr_setxregs): Likewise.
187         * td_thr_sigsetmask.c (td_thr_sigsetmask): Likewise.
188         * td_thr_tsd.c (td_thr_tsd): Likewise.
189         * td_thr_validate.c (td_thr_validate): Likewise.
191 2001-04-12  Ulrich Drepper  <drepper@redhat.com>
193         * td_ta_map_id2thr.c: If thread terminated return TD_NOTHR.
194         * td_thr_validate.c: Likewise.
196 2001-04-04  Ulrich Drepper  <drepper@redhat.com>
198         * td_thr_getfpregs.c: If p_pid is zero use ps_getpid().
199         * td_thr_getgregs.c: Likewise.
200         * td_thr_setfpregs.c: Likewise.
201         * td_thr_setgregs.c: Likewise.
203 2001-03-20  Ulrich Drepper  <drepper@redhat.com>
205         * Makefile (libthread_db-routines): Add td_symbol_list.
206         * Versions [libthread_db] (GLIBC_2.2.3): Add td_symbol_list.
207         * td_symbol_list.c: New file.
208         * thread_db.h: Add prototype for td_symbol_list.
209         * thread_dbP.h: Define symbol name indices.
210         Add prototype for td_lookup.
211         * td_ta_event_addr.c: Use td_lookup instead of directly using
212         ps_pglobal_lookup to find symbol address.
213         * td_ta_get_nthreads.c: Likewise.
214         * td_ta_new.c: Likewise.
216 2001-03-18  Ulrich Drepper  <drepper@redhat.com>
218         * Makefile: When generating DSO link with libc_nonshared.a.
220 2000-08-01  Andreas Jaeger  <aj@suse.de>
222         * Makefile (distribute): Add missing files.
224 2000-04-24  Mark Kettenis  <kettenis@gnu.org>
226         * td_thr_get_info.c (td_thr_get_info): Set ti_state to
227         TD_THR_ACTIVE instead of TD_THR_RUN.  If the thread is no longer
228         running but is still joinable, set it to TD_THR_ZOMBIE.  Otherwise
229         set it to TD_THR_UNKNOWN.
231 2000-02-25  Andreas Jaeger  <aj@suse.de>
233         * td_ta_thr_iter.c: Include <alloca.h> for prototype declaration.
234         * td_ta_tsd_iter.c: Likewise.
236 2000-01-20  Andreas Jaeger  <aj@suse.de>
238         * td_thr_getgregs.c (td_thr_getgregs): Fix typo.
240 2000-01-19  Ulrich Drepper  <drepper@cygnus.com>
242         * td_thr_getgregs.c: Correct size parameter of memset call.
244 1999-12-02  Ulrich Drepper  <drepper@cygnus.com>
246         * proc_service.h: Fix typos in last added declaractions.
248 1999-12-01  Ulrich Drepper  <drepper@cygnus.com>
250         * proc_service.h: Add ps_pstop, ps_pcontinue, ps_lstop, and
251         ps_lcontinue prototypes.
253 1999-11-23  Ulrich Drepper  <drepper@cygnus.com>
255         * Makefile: Correct dependency for shared object.
257 1999-11-22  Ulrich Drepper  <drepper@cygnus.com>
259         * td_ta_map_lwp2thr.c: Add missing brace in comparison.
261         * thread_dbP.h (LOG): Only print message if __td_debug is nonzero.
262         * td_init.c: Add __td_debug.
264 1999-11-12  Ulrich Drepper  <drepper@cygnus.com>
266         * td_ta_thr_iter.c: Start copying list of descriptors from right
267         position in target process.
269         * td_ta_thr_iter.c: Fix loop starting point over all but main and
270         manager thread.
272         * td_ta_thr_iter.c: Read descriptors for main and manager thread
273         special since after this we can assume that no new threads will be
274         created anymore (at least in the gdb implementation).
276         * Makefile: Define version correctly.
278 1999-11-10  Ulrich Drepper  <drepper@cygnus.com>
280         * td_ta_map_lwp2thr.c: If p_pid field is zero, this is before the
281         thread library is initialized and we get the PID from the
282         debugger.
284 1999-11-08  Ulrich Drepper  <drepper@cygnus.com>
286         * td_thr_get_info.c: Make sure ti_lid is never zero.
288         * proc_service.h: Add ps_getpid prototype.
290 1999-11-03  Ulrich Drepper  <drepper@cygnus.com>
292         * thread_dbP.h (ta_ok): New function.
293         * td_ta_new.c: Add new handle to list.
294         * td_ta_delete.c: Remove handle from list.
295         * td_ta_clear_event.c: Use ta_ok to check for correct ta parameter.
296         * td_ta_enable_stats.c: Likewise.
297         * td_ta_event_addr.c: Likewise.
298         * td_ta_event_getmsg.c: Likewise.
299         * td_ta_get_nthreads.c: Likewise.
300         * td_ta_get_ph.c: Likewise.
301         * td_ta_get_stats.c: Likewise.
302         * td_ta_map_id2thr.c: Likewise.
303         * td_ta_map_lwp2thr.c: Likewise.
304         * td_ta_reset_stats.c: Likewise.
305         * td_ta_set_event.c: Likewise.
306         * td_ta_setconcurrency.c: Likewise.
307         * td_ta_thr_iter.c: Likewise.
309         * td_ta_tsd_iter.c: Optimize memory retrieving.
311         * Versions: New file.
313         * td_thr_get_info.c (td_thr_get_info): Initialize ti_traceme.
315 1999-11-02  Ulrich Drepper  <drepper@cygnus.com>
317         * td_ta_thr_iter.c (td_ta_thr_iter): Optimize a bit.  Read all
318         handles at once.
320         * thread_dbP.h (struct th_thragent): Add pthread_handle_num.
321         * td_ta_new.c: Initialize pthread_handle_num.
322         * td_ta_event_getmsg.c: If last event was already reported search
323         for another unreported event.
325         * td_thr_get_info.c (td_thr_get_info): Initialize ti_events.
327         * Makefile (libthread_db-routines): Add td_ta_set_event,
328         td_ta_event_getmsg, and td_ta_clear_event.
329         * td_ta_clear_event.c: New file.
330         * td_ta_event_getmsg.c: New file.
331         * td_ta_new.c: Get address of __pthread_last_event in target.
332         * td_ta_set_event.c: Don't overwrite old mask, set additional bits.
333         * td_thr_set_event.c: Likewise.
334         * td_thr_clear_event.c: Implement.
335         * thread_db.h: Declare td_ta_clear_event and td_ta_event_getmsg.
336         * thread_dbP.h (struct td_thragent): Add pthread_last_event.
338         * td_ta_new.c: Don't test for __pthread_threads_debug.  Get address
339         of __pthread_threads_events and fail if this is not possible.
340         * td_ta_event_addr.c: Implement.
341         * td_thr_event_enable.c: Implement.
342         * td_thr_event_getmsg.c: Implement.
343         * td_thr_set_event.c: Implement.
344         * td_ta_set_event.c: New file.
345         * thread_db.h (td_eventbuf_t): Define.
346         Declare td_ta_set_event.
347         * thread_dbP.h (struct td_thragent): Add pthread_threads_eventsp.
349         * td_thr_getfpregs.c: For terminated threads return empty structure.
350         * td_thr_getgregs.c: Likewise.
351         * td_thr_setfpregs.c: Likewise.
352         * td_thr_setgregs.c: Likewise.
354 1999-11-01  Ulrich Drepper  <drepper@cygnus.com>
356         * thread_db.h: Shuffle types around to make things work for gdb.
357         * thread_dbP.h: Include proc_service.h before thread_db.h.
359         * thread_db.h: It's TD_NOLIBTHREAD, not TD_LIBTHREAD.
360         * td_ta_new.c: Likewise.
362 1999-10-14  Ulrich Drepper  <drepper@cygnus.com>
364         * td_ta_new.c: p_startfct does not exist anymore.
366         * td_thr_get_info.c: Always initialize start function.
368         * td_ta_thr_iter.c: Don't return threads which exited (but are not
369         joined).
371         * td_thr_validate.c: Don't skip manager thread.
373 1999-10-13  Ulrich Drepper  <drepper@cygnus.com>
375         * td_ta_thr_iter.c: Use size of descriptor from *TA.
376         Don't return manager thread before it's actually running.
377         Actually use state parameter to distingusih at least a few states.
379         * td_thr_get_info.c: Handle manager thread special.  Fill in ti_lid,
380         ti_state, and ti_startfunc fields.
382 1999-10-12  Andreas Jaeger  <aj@suse.de>
384         * thread_dbP.h: Include <string.h> for strlen declaration.  Remove
385         __libc_write prototype since this is already declared in
386         linuxthreads/internals.h.
388 1999-10-11  Ulrich Drepper  <drepper@cygnus.com>
390         * thread_db.h: Fix comment for ti_type.
392         * td_thr_get_info.c: Initialize ti_type field.
394         * td_ta_thr_iter.c: Also report the manager thread.
396 1999-10-08  Andreas Jaeger  <aj@suse.de>
398         * thread_db.h: Fix typos in comments.
400         * td_ta_get_nthreads.c (td_ta_get_nthreads): Don't hardcode
401         libpthread library name, get it from <gnu/lib-names.h> instead.
402         * td_ta_new.c (td_ta_new): Likewise.
404 1999-10-08  Ulrich Drepper  <drepper@cygnus.com>
406         * shlib-versions: New file.
408 1999-10-07  Ulrich Drepper  <drepper@cygnus.com>
410         * Makefile: New file.
411         * proc_service.h: New file.
412         * td_init.c: New file.
413         * td_log.c: New file.
414         * td_ta_delete.c: New file.
415         * td_ta_enable_stats.c: New file.
416         * td_ta_event_addr.c: New file.
417         * td_ta_get_nthreads.c: New file.
418         * td_ta_get_ph.c: New file.
419         * td_ta_get_stats.c: New file.
420         * td_ta_map_id2thr.c: New file.
421         * td_ta_map_lwp2thr.c: New file.
422         * td_ta_new.c: New file.
423         * td_ta_reset_stats.c: New file.
424         * td_ta_setconcurrency.c: New file.
425         * td_ta_thr_iter.c: New file.
426         * td_ta_tsd_iter.c: New file.
427         * td_thr_clear_event.c: New file.
428         * td_thr_dbresume.c: New file.
429         * td_thr_dbsuspend.c: New file.
430         * td_thr_event_enable.c: New file.
431         * td_thr_event_getmsg.c: New file.
432         * td_thr_get_info.c: New file.
433         * td_thr_getfpregs.c: New file.
434         * td_thr_getgregs.c: New file.
435         * td_thr_getxregs.c: New file.
436         * td_thr_getxregsize.c: New file.
437         * td_thr_set_event.c: New file.
438         * td_thr_setfpregs.c: New file.
439         * td_thr_setgregs.c: New file.
440         * td_thr_setprio.c: New file.
441         * td_thr_setsigpending.c: New file.
442         * td_thr_setxregs.c: New file.
443         * td_thr_sigsetmask.c: New file.
444         * td_thr_tsd.c: New file.
445         * td_thr_validate.c: New file.
446         * thread_db.h: New file.
447         * thread_dbP.h: New file.