ChangeLog 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. 2006-04-25 Bernhard Fischer <rep.nop@aon.at>
  2. * td_init.c (__td_debug): Only declare when NDEBUG is undefined.
  3. 2006-04-25 Bernhard Fischer <rep.nop@aon.at>
  4. * thread_dbP.h: Fix Indices typo in comment.
  5. 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
  6. * td_ta_clear_event.c (td_ta_clear_event): Correct arguments to
  7. sizeof.
  8. * td_ta_set_event.c (td_ta_set_event): Likewise.
  9. * td_thr_clear_event.c (td_thr_clear_event): Likewise.
  10. * td_thr_set_event.c (td_thr_set_event): Likewise.
  11. 2005-01-09 Andreas Jaeger <aj@suse.de>
  12. * td_thr_tlsbase.c (td_thr_tlsbase): Adjust for dtv change.
  13. 2004-05-01 Jakub Jelinek <jakub@redhat.com>
  14. * thread_dbP.h (LOG): Use write instead of __libc_write.
  15. 2004-03-13 Jakub Jelinek <jakub@redhat.com>
  16. * td_thr_tlsbase.c: Remove dl-tls.h include. Don't use
  17. TLS_TP_OFFSET in the #if, but TLS_TCB_SIZE == 0 ?:.
  18. 2004-03-12 Roland McGrath <roland@redhat.com>
  19. * td_thr_tlsbase.c [TLS_DTV_AT_TP && TLS_TP_OFFSET > 0]: Handle this
  20. case (PowerPC) differently.
  21. 2003-11-25 Roland McGrath <roland@redhat.com>
  22. * td_symbol_list.c (symbol_list_arr) [HAVE_ASM_GLOBAL_DOT_NAME]:
  23. Prepend "." to symbol names for functions.
  24. 2003-08-18 Daniel Jacobowitz <drow@mvista.com>
  25. * td_thr_getfpregs.c (td_thr_getfpregs): Use the main thread if
  26. the descriptor is uninitialized.
  27. * td_thr_getgregs.c (td_thr_getgregs): Likewise.
  28. 2003-03-15 Roland McGrath <roland@redhat.com>
  29. * thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER.
  30. (td_thr_tlsbase): Declare it.
  31. * td_thr_tlsbase.c: New file.
  32. * Makefile (libthread_db-routines): Add it.
  33. * Versions (libthread_db: GLIBC_2.3.3): New set, add td_thr_tlsbase.
  34. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use td_thr_tlsbase.
  35. 2003-02-27 Roland McGrath <roland@redhat.com>
  36. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Handle TLS_DTV_AT_TP.
  37. * td_ta_thr_iter.c (handle_descr) [!defined USE_TLS || !TLS_DTV_AT_TP]:
  38. Conditionalize p_header use on this.
  39. 2003-01-29 Roland McGrath <roland@redhat.com>
  40. * td_ta_new.c (td_ta_new): Cap the `sizeof_descr' value read from the
  41. inferior at `sizeof (struct _pthread_descr_struct)', since we use it
  42. as a length in copies to our own structures.
  43. 2003-01-05 Ulrich Drepper <drepper@redhat.com>
  44. * Makefile (libthread_db.so-no-z-defs): Define.
  45. 2002-09-29 Ulrich Drepper <drepper@redhat.com>
  46. * td_thr_tsd.c (td_thr_tsd): Read correct entry from pthread_keys
  47. array.
  48. 2002-09-28 Andreas Jaeger <aj@suse.de>
  49. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Fix reference to dtv.
  50. 2002-09-24 Roland McGrath <roland@redhat.com>
  51. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Fetch just the
  52. individual members we need, not the whole structures.
  53. 2002-09-24 Ulrich Drepper <drepper@redhat.com>
  54. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Change second
  55. parameter to be the address of the link map in the inferior process.
  56. * thread_db.h: Update prototype for td_thr_tls_get_addr.
  57. 2002-08-23 Ulrich Drepper <drepper@redhat.com>
  58. * thread_dbP.h: Define LINUXTHREADS_VERSION.
  59. * td_symbol_list.c (symbol_list_arr): Add LINUXTHREADS_VERSION string.
  60. * td_ta_new.c (td_ta_new): After verifying the thread library is
  61. there check version.
  62. * thread_db.h: Add new error TD_VERSION.
  63. 2002-08-21 Roland McGrath <roland@redhat.com>
  64. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): __attribute_used__ ->
  65. __attribute__ ((unused)) for arguments.
  66. 2002-08-07 Ulrich Drepper <drepper@redhat.com>
  67. * thread_dbP.h: Define LINUXTHREADS_INITIAL_REPORT_EVENTS.
  68. * td_thr_event_enable.c (td_thr_event_enable): If th->th_unique is
  69. null write to __linuxthreads_initial_report_events.
  70. * td_symbol_list.c (symbol_list_arr): Add
  71. __linuxthreads_initial_report_events.
  72. 2002-07-16 Ulrich Drepper <drepper@redhat.com>
  73. * td_thr_clear_event.c: Yet more changes to help with TLS-enabled
  74. libpthread.
  75. * td_thr_event_enable.c: Likewise.
  76. * td_thr_event_getmsg.c: Likewise.
  77. * td_thr_set_event.c: Likewise.
  78. * td_thr_setfpregs.c: Likewise.
  79. * td_thr_setgregs.c: Likewise.
  80. * td_thr_tsd.c: Likewise.
  81. * td_thr_validate.c: Likewise.
  82. 2002-07-15 Ulrich Drepper <drepper@redhat.com>
  83. * td_ta_thr_iter.c: Some more changes to enable using TLS-enabled
  84. libpthread.
  85. * td_thr_event_enable.c: Likewise.
  86. * td_thr_getfpregs.c: Likewise.
  87. * td_thr_getgregs.c: Likewise.
  88. 2002-07-14 Ulrich Drepper <drepper@redhat.com>
  89. * td_ta_map_id2thr.c: Begin fixing implementation for libpthread with
  90. TLS support.
  91. * td_ta_map_lwp2thr.c: Likewise.
  92. * td_ta_thr_iter.c: Likewise.
  93. * td_thr_get_info.c: Likewise.
  94. 2002-07-10 Ulrich Drepper <drepper@redhat.com>
  95. * Versions [libthread_db] (GLIBC_2.3): Add td_thr_tls_get_addr.
  96. 2002-06-14 H.J. Lu <hjl@gnu.org>
  97. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Don't include
  98. "tls.h". Return TD_ERR if USE_TLS is not defined.
  99. 2002-06-12 Ulrich Drepper <drepper@redhat.com>
  100. * td_thr_tls_get_addr.c: New file.
  101. * thread_db.h: Add prototype for td_thr_tls_get_addr.
  102. * Makefile (libthread_db-routines): Add td_thr_tls_get_addr.
  103. 2002-03-03 Andreas Jaeger <aj@suse.de>
  104. * thread_dbP.h: Include <unistd.h> for prototypes of __libc_write.
  105. 2002-02-04 Ulrich Drepper <drepper@redhat.com>
  106. * thread_dbP.h: Include descr.h instead of internals.h.
  107. * td_ta_event_getmsg.c: Also include <linuxthreads/internals.h>.
  108. * td_ta_map_id2thr.c: Likewise.
  109. * td_ta_map_lwp2thr.c: Likewise.
  110. * td_ta_thr_iter.c: Likewise.
  111. * td_ta_tsd_iter.c: Likewise.
  112. * td_thr_tsd.c: Likewise.
  113. * td_thr_validate.c: Likewise.
  114. 2001-12-28 Andreas Jaeger <aj@suse.de>
  115. * td_init.c (td_init): Don't use __FUNCTION__ as literal.
  116. * td_log.c (td_log): Likewise.
  117. * td_ta_delete.c (td_ta_delete): Likewise.
  118. * td_ta_get_nthreads.c (td_ta_get_nthreads): Likewise.
  119. * td_ta_get_ph.c (td_ta_get_ph): Likewise.
  120. * td_ta_map_id2thr.c (td_ta_map_id2thr): Likewise.
  121. * td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Likewise.
  122. * td_ta_new.c (td_ta_new): Likewise.
  123. * td_ta_clear_event.c (td_ta_clear_event): Likewise.
  124. * td_ta_enable_stats.c (td_ta_enable_stats): Likewise.
  125. * td_ta_event_addr.c (td_ta_event_addr): Likewise.
  126. * td_ta_event_getmsg.c (td_ta_event_getmsg): Likewise.
  127. * td_ta_get_stats.c (td_ta_get_stats): Likewise.
  128. * td_ta_reset_stats.c (td_ta_reset_stats): Likewise.
  129. * td_ta_set_event.c (td_ta_set_event): Likewise.
  130. * td_ta_setconcurrency.c (td_ta_setconcurrency): Likewise.
  131. * td_ta_thr_iter.c (td_ta_thr_iter): Likewise.
  132. * td_ta_tsd_iter.c (td_ta_tsd_iter): Likewise.
  133. * td_thr_clear_event.c (td_thr_clear_event): Likewise.
  134. * td_thr_dbresume.c (td_thr_dbresume): Likewise.
  135. * td_thr_dbsuspend.c (td_thr_dbsuspend): Likewise.
  136. * td_thr_event_enable.c (td_thr_event_enable): Likewise.
  137. * td_thr_event_getmsg.c (td_thr_event_getmsg): Likewise.
  138. * td_thr_get_info.c (td_thr_get_info): Likewise.
  139. * td_thr_getfpregs.c (td_thr_getfpregs): Likewise.
  140. * td_thr_getgregs.c (td_thr_getgregs): Likewise.
  141. * td_thr_getxregs.c (td_thr_getxregs): Likewise.
  142. * td_thr_getxregsize.c (td_thr_getxregsize): Likewise.
  143. * td_thr_set_event.c (td_thr_set_event): Likewise.
  144. * td_thr_setfpregs.c (td_thr_setfpregs): Likewise.
  145. * td_thr_setgregs.c (td_thr_setgregs): Likewise.
  146. * td_thr_setprio.c (td_thr_setprio): Likewise.
  147. * td_thr_setsigpending.c (td_thr_setsigpending): Likewise.
  148. * td_thr_setxregs.c (td_thr_setxregs): Likewise.
  149. * td_thr_sigsetmask.c (td_thr_sigsetmask): Likewise.
  150. * td_thr_tsd.c (td_thr_tsd): Likewise.
  151. * td_thr_validate.c (td_thr_validate): Likewise.
  152. 2001-04-12 Ulrich Drepper <drepper@redhat.com>
  153. * td_ta_map_id2thr.c: If thread terminated return TD_NOTHR.
  154. * td_thr_validate.c: Likewise.
  155. 2001-04-04 Ulrich Drepper <drepper@redhat.com>
  156. * td_thr_getfpregs.c: If p_pid is zero use ps_getpid().
  157. * td_thr_getgregs.c: Likewise.
  158. * td_thr_setfpregs.c: Likewise.
  159. * td_thr_setgregs.c: Likewise.
  160. 2001-03-20 Ulrich Drepper <drepper@redhat.com>
  161. * Makefile (libthread_db-routines): Add td_symbol_list.
  162. * Versions [libthread_db] (GLIBC_2.2.3): Add td_symbol_list.
  163. * td_symbol_list.c: New file.
  164. * thread_db.h: Add prototype for td_symbol_list.
  165. * thread_dbP.h: Define symbol name indices.
  166. Add prototype for td_lookup.
  167. * td_ta_event_addr.c: Use td_lookup instead of directly using
  168. ps_pglobal_lookup to find symbol address.
  169. * td_ta_get_nthreads.c: Likewise.
  170. * td_ta_new.c: Likewise.
  171. 2001-03-18 Ulrich Drepper <drepper@redhat.com>
  172. * Makefile: When generating DSO link with libc_nonshared.a.
  173. 2000-08-01 Andreas Jaeger <aj@suse.de>
  174. * Makefile (distribute): Add missing files.
  175. 2000-04-24 Mark Kettenis <kettenis@gnu.org>
  176. * td_thr_get_info.c (td_thr_get_info): Set ti_state to
  177. TD_THR_ACTIVE instead of TD_THR_RUN. If the thread is no longer
  178. running but is still joinable, set it to TD_THR_ZOMBIE. Otherwise
  179. set it to TD_THR_UNKNOWN.
  180. 2000-02-25 Andreas Jaeger <aj@suse.de>
  181. * td_ta_thr_iter.c: Include <alloca.h> for prototype declaration.
  182. * td_ta_tsd_iter.c: Likewise.
  183. 2000-01-20 Andreas Jaeger <aj@suse.de>
  184. * td_thr_getgregs.c (td_thr_getgregs): Fix typo.
  185. 2000-01-19 Ulrich Drepper <drepper@cygnus.com>
  186. * td_thr_getgregs.c: Correct size parameter of memset call.
  187. 1999-12-02 Ulrich Drepper <drepper@cygnus.com>
  188. * proc_service.h: Fix typos in last added declaractions.
  189. 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
  190. * proc_service.h: Add ps_pstop, ps_pcontinue, ps_lstop, and
  191. ps_lcontinue prototypes.
  192. 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
  193. * Makefile: Correct dependency for shared object.
  194. 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
  195. * td_ta_map_lwp2thr.c: Add missing brace in comparison.
  196. * thread_dbP.h (LOG): Only print message if __td_debug is nonzero.
  197. * td_init.c: Add __td_debug.
  198. 1999-11-12 Ulrich Drepper <drepper@cygnus.com>
  199. * td_ta_thr_iter.c: Start copying list of descriptors from right
  200. position in target process.
  201. * td_ta_thr_iter.c: Fix loop starting point over all but main and
  202. manager thread.
  203. * td_ta_thr_iter.c: Read descriptors for main and manager thread
  204. special since after this we can assume that no new threads will be
  205. created anymore (at least in the gdb implementation).
  206. * Makefile: Define version correctly.
  207. 1999-11-10 Ulrich Drepper <drepper@cygnus.com>
  208. * td_ta_map_lwp2thr.c: If p_pid field is zero, this is before the
  209. thread library is initialized and we get the PID from the
  210. debugger.
  211. 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
  212. * td_thr_get_info.c: Make sure ti_lid is never zero.
  213. * proc_service.h: Add ps_getpid prototype.
  214. 1999-11-03 Ulrich Drepper <drepper@cygnus.com>
  215. * thread_dbP.h (ta_ok): New function.
  216. * td_ta_new.c: Add new handle to list.
  217. * td_ta_delete.c: Remove handle from list.
  218. * td_ta_clear_event.c: Use ta_ok to check for correct ta parameter.
  219. * td_ta_enable_stats.c: Likewise.
  220. * td_ta_event_addr.c: Likewise.
  221. * td_ta_event_getmsg.c: Likewise.
  222. * td_ta_get_nthreads.c: Likewise.
  223. * td_ta_get_ph.c: Likewise.
  224. * td_ta_get_stats.c: Likewise.
  225. * td_ta_map_id2thr.c: Likewise.
  226. * td_ta_map_lwp2thr.c: Likewise.
  227. * td_ta_reset_stats.c: Likewise.
  228. * td_ta_set_event.c: Likewise.
  229. * td_ta_setconcurrency.c: Likewise.
  230. * td_ta_thr_iter.c: Likewise.
  231. * td_ta_tsd_iter.c: Optimize memory retrieving.
  232. * Versions: New file.
  233. * td_thr_get_info.c (td_thr_get_info): Initialize ti_traceme.
  234. 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
  235. * td_ta_thr_iter.c (td_ta_thr_iter): Optimize a bit. Read all
  236. handles at once.
  237. * thread_dbP.h (struct th_thragent): Add pthread_handle_num.
  238. * td_ta_new.c: Initialize pthread_handle_num.
  239. * td_ta_event_getmsg.c: If last event was already reported search
  240. for another unreported event.
  241. * td_thr_get_info.c (td_thr_get_info): Initialize ti_events.
  242. * Makefile (libthread_db-routines): Add td_ta_set_event,
  243. td_ta_event_getmsg, and td_ta_clear_event.
  244. * td_ta_clear_event.c: New file.
  245. * td_ta_event_getmsg.c: New file.
  246. * td_ta_new.c: Get address of __pthread_last_event in target.
  247. * td_ta_set_event.c: Don't overwrite old mask, set additional bits.
  248. * td_thr_set_event.c: Likewise.
  249. * td_thr_clear_event.c: Implement.
  250. * thread_db.h: Declare td_ta_clear_event and td_ta_event_getmsg.
  251. * thread_dbP.h (struct td_thragent): Add pthread_last_event.
  252. * td_ta_new.c: Don't test for __pthread_threads_debug. Get address
  253. of __pthread_threads_events and fail if this is not possible.
  254. * td_ta_event_addr.c: Implement.
  255. * td_thr_event_enable.c: Implement.
  256. * td_thr_event_getmsg.c: Implement.
  257. * td_thr_set_event.c: Implement.
  258. * td_ta_set_event.c: New file.
  259. * thread_db.h (td_eventbuf_t): Define.
  260. Declare td_ta_set_event.
  261. * thread_dbP.h (struct td_thragent): Add pthread_threads_eventsp.
  262. * td_thr_getfpregs.c: For terminated threads return empty structure.
  263. * td_thr_getgregs.c: Likewise.
  264. * td_thr_setfpregs.c: Likewise.
  265. * td_thr_setgregs.c: Likewise.
  266. 1999-11-01 Ulrich Drepper <drepper@cygnus.com>
  267. * thread_db.h: Shuffle types around to make things work for gdb.
  268. * thread_dbP.h: Include proc_service.h before thread_db.h.
  269. * thread_db.h: It's TD_NOLIBTHREAD, not TD_LIBTHREAD.
  270. * td_ta_new.c: Likewise.
  271. 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
  272. * td_ta_new.c: p_startfct does not exist anymore.
  273. * td_thr_get_info.c: Always initialize start function.
  274. * td_ta_thr_iter.c: Don't return threads which exited (but are not
  275. joined).
  276. * td_thr_validate.c: Don't skip manager thread.
  277. 1999-10-13 Ulrich Drepper <drepper@cygnus.com>
  278. * td_ta_thr_iter.c: Use size of descriptor from *TA.
  279. Don't return manager thread before it's actually running.
  280. Actually use state parameter to distingusih at least a few states.
  281. * td_thr_get_info.c: Handle manager thread special. Fill in ti_lid,
  282. ti_state, and ti_startfunc fields.
  283. 1999-10-12 Andreas Jaeger <aj@suse.de>
  284. * thread_dbP.h: Include <string.h> for strlen declaration. Remove
  285. __libc_write prototype since this is already declared in
  286. linuxthreads/internals.h.
  287. 1999-10-11 Ulrich Drepper <drepper@cygnus.com>
  288. * thread_db.h: Fix comment for ti_type.
  289. * td_thr_get_info.c: Initialize ti_type field.
  290. * td_ta_thr_iter.c: Also report the manager thread.
  291. 1999-10-08 Andreas Jaeger <aj@suse.de>
  292. * thread_db.h: Fix typos in comments.
  293. * td_ta_get_nthreads.c (td_ta_get_nthreads): Don't hardcode
  294. libpthread library name, get it from <gnu/lib-names.h> instead.
  295. * td_ta_new.c (td_ta_new): Likewise.
  296. 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
  297. * shlib-versions: New file.
  298. 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
  299. * Makefile: New file.
  300. * proc_service.h: New file.
  301. * td_init.c: New file.
  302. * td_log.c: New file.
  303. * td_ta_delete.c: New file.
  304. * td_ta_enable_stats.c: New file.
  305. * td_ta_event_addr.c: New file.
  306. * td_ta_get_nthreads.c: New file.
  307. * td_ta_get_ph.c: New file.
  308. * td_ta_get_stats.c: New file.
  309. * td_ta_map_id2thr.c: New file.
  310. * td_ta_map_lwp2thr.c: New file.
  311. * td_ta_new.c: New file.
  312. * td_ta_reset_stats.c: New file.
  313. * td_ta_setconcurrency.c: New file.
  314. * td_ta_thr_iter.c: New file.
  315. * td_ta_tsd_iter.c: New file.
  316. * td_thr_clear_event.c: New file.
  317. * td_thr_dbresume.c: New file.
  318. * td_thr_dbsuspend.c: New file.
  319. * td_thr_event_enable.c: New file.
  320. * td_thr_event_getmsg.c: New file.
  321. * td_thr_get_info.c: New file.
  322. * td_thr_getfpregs.c: New file.
  323. * td_thr_getgregs.c: New file.
  324. * td_thr_getxregs.c: New file.
  325. * td_thr_getxregsize.c: New file.
  326. * td_thr_set_event.c: New file.
  327. * td_thr_setfpregs.c: New file.
  328. * td_thr_setgregs.c: New file.
  329. * td_thr_setprio.c: New file.
  330. * td_thr_setsigpending.c: New file.
  331. * td_thr_setxregs.c: New file.
  332. * td_thr_sigsetmask.c: New file.
  333. * td_thr_tsd.c: New file.
  334. * td_thr_validate.c: New file.
  335. * thread_db.h: New file.
  336. * thread_dbP.h: New file.