]> git.ipfire.org Git - thirdparty/glibc.git/blob - nptl_db/ChangeLog
Fix td_ta_map_lwp2thr logging and early sanity check.
[thirdparty/glibc.git] / nptl_db / ChangeLog
1 2009-08-23 Roland McGrath <roland@redhat.com>
2
3 * td_ta_map_lwp2thr.c (__td_ta_lookup_th_unique): Move ta_ok check
4 and LOG call back to ...
5 (td_ta_map_lwp2thr): ... here.
6 Reported by Maciej W. Rozycki <macro@codesourcery.com>.
7
8 2009-05-25 Aurelien Jarno <aurelien@aurel32.net>
9
10 [BZ #10200]
11 * db-symbols.awk: Use the last field for the symbol name instead
12 of the 8th one.
13
14 2009-03-19 Roland McGrath <roland@redhat.com>
15
16 * td_symbol_list.c (DB_LOOKUP_NAME, DB_LOOKUP_NAME_TH_UNIQUE):
17 Use STRINGIFY macro in place of #argument.
18
19 2009-02-27 Roland McGrath <roland@redhat.com>
20
21 * td_symbol_list.c (symbol_list_arr): Move initializer guts to ...
22 * db-symbols.h: ... here, new file.
23 * db-symbols.awk: New file.
24 * Makefile (distribute): Add them.
25 ($(objpfx)db-symbols.out): New target.
26 (tests): Depend on it.
27 ($(objpfx)db-symbols.v.i): New dependent rule.
28
29 2009-02-06 Ulrich Drepper <drepper@redhat.com>
30
31 * td_thr_get_info.c (td_thr_get_info): Initialize schedpolicy in
32 the special case [Coverity CID 251].
33
34 2008-03-25 Roland McGrath <roland@redhat.com>
35
36 [BZ #5983]
37 * structs.def: Add pid field of struct pthread.
38 * td_ta_thr_iter.c (iterate_thread_list): Take new arg MATCH_PID.
39 If a thread's pid does not match nor is < 0 while its tid matches
40 nor is < 0 and equal to -MATCH_PID, ignore it.
41 * td_thr_validate.c (td_thr_validate): Validate thread's pid/tid.
42
43 2007-05-16 Roland McGrath <roland@redhat.com>
44
45 * td_thr_get_info.c: Fake the results for TH->th_unique == 0.
46 * td_thr_validate.c: Likewise.
47 * td_thr_setgregs.c: Likewise.
48 * td_thr_setfpregs.c: Likewise.
49 * td_thr_getgregs.c: Likewise.
50 * td_thr_getfpregs.c: Likewise.
51 * td_thr_tlsbase.c: Likewise.
52
53 * structs.def: Add DB_VARIABLE (__nptl_initial_report_events).
54 * db_info.c: Add necessary declaration.
55 * td_thr_event_enable.c: Set __nptl_initial_report_events too.
56
57 * td_ta_thr_iter.c (iterate_thread_list): Make FAKE_EMPTY bool.
58 Use th_unique=0 in fake descriptor before initialization.
59
60 * td_ta_map_lwp2thr.c (__td_ta_lookup_th_unique): New function, broken
61 out of ...
62 (td_ta_map_lwp2thr): ... here, call it. But don't before __stack_user
63 is initialized, then fake a handle with th_unique=0.
64 * thread_dbP.h: Declare it.
65
66 2006-10-26 Pete Eberlein <eberlein@us.ibm.com>
67
68 * nptl_db/db_info.c [TLS_DTV_AT_TP]: Fixed size init for dtvp
69 to sizeof a pointer, instead of sizeof the union.
70
71 2006-10-27 Ulrich Drepper <drepper@redhat.com>
72
73 * structs.def: USE_TLS support is now default.
74
75 2006-02-03 Roland McGrath <roland@redhat.com>
76
77 * structs.def: Add a descriptor for pointer.val field of dtv_t.
78 * td_thr_tlsbase.c (td_thr_tlsbase): Extract pointer.val field from
79 DTV slot.
80
81 2004-09-09 Roland McGrath <roland@redhat.com>
82
83 * td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Don't abort if inferior's
84 descriptor is bogus.
85
86 2004-05-27 Roland McGrath <roland@redhat.com>
87
88 * td_thr_validate.c: When we find no threads and the inferior appears
89 uninitialized, validate the main thread as a special case.
90
91 2004-05-01 Jakub Jelinek <jakub@redhat.com>
92
93 * thread_dbP.h (LOG): Use write instead of __libc_write.
94
95 2004-04-03 Ulrich Drepper <drepper@redhat.com>
96
97 * td_ta_set_event.c (td_ta_set_event): Initialize copy to avoid
98 warnings.
99
100 * td_ta_thr_iter.c (td_ta_thr_iter): Initialize list to avoid warning.
101 * td_ta_clear_event.c (td_ta_clear_event): Initialize eventmask to
102 avoid warning.
103 * td_ta_set_event.c (td_ta_set_event): Likewise.
104
105 2004-03-24 Roland McGrath <roland@redhat.com>
106
107 * fetch-value.c (_td_locate_field): Cast DB_DESC_OFFSET to int32_t.
108 * thread_dbP.h (DB_DESC_OFFSET): Remove cast from definition.
109
110 2004-03-13 Jakub Jelinek <jakub@redhat.com>
111
112 * db_info.c: Don't use TLS_TP_OFFSET in the #if, but
113 TLS_TCB_SIZE == 0 ?: in the DESC macro.
114
115 2004-03-12 Roland McGrath <roland@redhat.com>
116
117 * db_info.c [TLS_DTV_AT_TP && TLS_TP_OFFSET > 0]
118 (_thread_db_pthread_dtvp): Define differently for this case (PowerPC).
119
120 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
121
122 * db_info.c (REGISTER): Add bit size of thread register as second
123 parameter to REGISTER macro.
124
125 2003-12-02 Roland McGrath <roland@redhat.com>
126
127 * thread_dbP.h (DB_FUNCTION): New macro.
128 * structs.def: Use it for __nptl_create_event and __nptl_death_event.
129 * db_info.c (DB_FUNCTION): New macro.
130 * td_symbol_list.c (DB_FUNCTION): New macro, prepend "." to symbol
131 name under [HAVE_ASM_GLOBAL_DOT_NAME].
132 (td_lookup) [HAVE_ASM_GLOBAL_DOT_NAME]: If lookup fails with PS_NOSYM
133 and name starts with a dot, try it without the dot.
134
135 2003-09-08 Roland McGrath <roland@redhat.com>
136
137 * td_thr_get_info.c (td_thr_get_info): Cast th_unique to thread_t.
138
139 2003-08-22 Roland McGrath <roland@redhat.com>
140
141 * fetch-value.c (_td_check_sizeof, _td_locate_field): Return
142 TD_NOCAPAB for PS_NOSYM, instead of vanilla TD_ERR.
143 * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Return TD_NOAPLIC when
144 DB_GET_FIELD returns TD_NOCAPAB.
145
146 * thread_db.h (td_thr_tls_get_addr): Use psaddr_t in signature.
147 * structs.def [USE_TLS]: Add DB_STRUCT_FIELD (link_map, l_tls_modid).
148 * db_info.c (link_map): Typedef it.
149 * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Rewritten.
150
151 2003-08-14 Roland McGrath <roland@redhat.com>
152
153 * thread_dbP.h: Mostly rewritten with many new macros and decls.
154 * td_ta_new.c (td_ta_new): Don't cache a lot of symbol values.
155 * structs.def: New file.
156 * db_info.c: New file.
157 * td_symbol_list.c (symbol_list_arr): Define with structs.def macros.
158 * td_ta_clear_event.c: Rewritten.
159 * td_ta_event_addr.c: Rewritten.
160 * td_ta_event_getmsg.c: Rewritten.
161 * td_ta_get_nthreads.c: Rewritten.
162 * td_ta_map_lwp2thr.c: New file.
163 * td_ta_set_event.c: Rewritten.
164 * td_ta_thr_iter.c: Rewritten.
165 * td_ta_tsd_iter.c: Rewritten.
166 * td_thr_clear_event.c: Rewritten.
167 * td_thr_event_enable.c: Rewritten.
168 * td_thr_event_getmsg.c: Rewritten.
169 * td_thr_get_info.c: Rewritten.
170 * td_thr_getfpregs.c: Rewritten.
171 * td_thr_getgregs.c: Rewritten.
172 * td_thr_set_event.c: Rewritten.
173 * td_thr_setfpregs.c: Rewritten.
174 * td_thr_setgregs.c: Rewritten.
175 * td_thr_tlsbase.c: Rewritten.
176 * td_thr_tsd.c: Rewritten.
177 * td_thr_validate.c: Rewritten.
178 * Makefile (distribute): Add them.
179 * fetch-value.c: New file.
180 * Makefile (libthread_db-routines): Add it.
181
182 * thread_db.h (td_err_e): Comment fix.
183
184 2003-08-05 Roland McGrath <roland@redhat.com>
185
186 * thread_dbP.h (td_lookup): Add attribute_hidden to decl.
187
188 2003-08-04 Roland McGrath <roland@redhat.com>
189
190 * td_ta_clear_event.c (td_ta_clear_event): Fix sizes in ps_* calls.
191
192 2003-06-23 Roland McGrath <roland@redhat.com>
193
194 * proc_service.h: Cosmetic and comment fixes.
195
196 2003-06-19 Roland McGrath <roland@redhat.com>
197
198 * td_thr_event_enable.c (td_thr_event_enable): Use proper type `bool'
199 for value written into inferior's `report_events'.
200
201 2003-03-18 Roland McGrath <roland@redhat.com>
202
203 * td_thr_event_getmsg.c (td_thr_event_getmsg): Splice the thread out
204 of the ->nextevent linkage.
205
206 * td_ta_event_getmsg.c (td_ta_event_getmsg): Runtime error instead of
207 assert for reading TD_EVENT_NONE. Clear the event buffer after
208 reading it. Add a sanity check for foo->nextevent = foo.
209
210 2003-03-15 Roland McGrath <roland@redhat.com>
211
212 * thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER.
213 (td_thr_tlsbase): Declare it.
214 * td_thr_tlsbase.c: New file.
215 * Makefile (libthread_db-routines): Add it.
216 * Versions (libthread_db: GLIBC_2.3.3): New set, add td_thr_tlsbase.
217 * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use td_thr_tlsbase.
218
219 2003-03-14 Roland McGrath <roland@redhat.com>
220
221 * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use `header.' prefix.
222
223 2003-03-10 Roland McGrath <roland@redhat.com>
224
225 * td_ta_thr_iter.c (iterate_thread_list): Don't use `header.data.'
226 prefix for `struct pthread' members.
227 * td_thr_validate.c (check_thread_list): Likewise.
228 * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Likewise.
229
230 2003-03-03 Roland McGrath <roland@redhat.com>
231
232 * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Handle TLS_DTV_AT_TP.
233
234 2003-02-15 Ulrich Drepper <drepper@redhat.com>
235
236 * td_symbol_list.c: New symbol name for SYM_PTHREAD_NTHREADS.
237
238 2003-01-07 Jakub Jelinek <jakub@redhat.com>
239
240 * td_ta_event_getmsg.c: Include assert.h.
241
242 -2003-01-05 Ulrich Drepper <drepper@redhat.com>
243
244 * Makefile (libthread_db.so-no-z-defs): Define.
245
246 2003-01-03 Roland McGrath <roland@redhat.com>
247
248 * td_thr_setgregs.c (td_thr_setgregs): *_BIT -> *_BITMASK
249 * td_thr_setfpregs.c (td_thr_setfpregs): Likewise.
250 * td_thr_get_info.c (td_thr_get_info): Likewise.
251 * td_thr_getgregs.c (td_thr_getgregs): Likewise.
252 * td_thr_getfpregs.c (td_thr_getfpregs): Likewise.
253 * td_ta_thr_iter.c (iterate_thread_list): Likewise.
254
255 2002-12-12 Roland McGrath <roland@redhat.com>
256
257 * td_ta_thr_iter.c (iterate_thread_list): Handle special case of
258 uninitialized __stack_user (zeros), hard-wire just the main thread.
259
260 * td_thr_get_info.c (td_thr_get_info): Fix ti_lid initialization.
261
262 2002-12-06 Roland McGrath <roland@redhat.com>
263
264 * td_ta_event_getmsg.c (td_ta_event_getmsg): Write the NEXT pointer
265 into the inferior's __pthread_last_event variable, not a word from
266 an inferior address used in the parent. Pass the address of a
267 null word to ps_pdwrite, not a null pointer.
268
269 2002-12-04 Roland McGrath <roland@redhat.com>
270
271 * td_thr_get_info.c (td_thr_get_info): ti_tid is pthread_t, not a PID.
272
273 * thread_db.h (td_thrinfo_t): Comment fix.
274
275 * td_ta_map_lwp2thr.c: Moved to ../nptl/sysdeps/i386/.
276
277 2002-12-04 Ulrich Drepper <drepper@redhat.com>
278
279 * td_ta_thr_iter.c (iterate_thread_list): At end of iteration read
280 pointer to the next element from inferior.
281
282 2002-12-02 Roland McGrath <roland@redhat.com>
283
284 * td_symbol_list.c (symbol_list_arr): pthread_keys -> __pthread_keys
285
286 * td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Fetch inferior registers to
287 see its %gs value, not our own.