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