patches/glibc/linuxthreads-2.2.2/glibc-linuxthreads-2.2.2-allow-gcc3.patch
changeset 336 4b0db42fc078
parent 335 f0d84f1d4c93
child 337 f083425c84e3
     1.1 --- a/patches/glibc/linuxthreads-2.2.2/glibc-linuxthreads-2.2.2-allow-gcc3.patch	Wed Aug 15 16:18:35 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,497 +0,0 @@
     1.4 -Fixes
     1.5 -td_init.c:30: error: parse error before string constant
     1.6 -td_init.c:30: error: parse error before string constant
     1.7 -
     1.8 -From http://sources.redhat.com/ml/crossgcc/2005-01/msg00106.html :
     1.9 ----
    1.10 -Date: Mon, 31 Jan 2005 10:27:32 -0800
    1.11 -Message-ID: <BF124E1E7928E546B5705D93C699ABDC0C7E99@glimmer.glimmerglassnet.com>
    1.12 -From: "Vince Chen" <chen at glimmerglass dot com>
    1.13 -To: <crossgcc at sources dot redhat dot com>
    1.14 -
    1.15 -I needed to build glibc-2.2.2 using gcc-3.x to support
    1.16 -some of our older redhat machines.
    1.17 -
    1.18 -This file patches glibc-linuxthreads-2.2.2.
    1.19 -
    1.20 -When using crosstool, I placed it in:
    1.21 -
    1.22 -   patches/glibc-linuxthreads-2.2.2/linuxthreads-gcc3.patch
    1.23 -
    1.24 -(you also need the glibc-gcc3.patch)
    1.25 -
    1.26 --vince
    1.27 ----
    1.28 -[removed parts already in threadparam.patch]
    1.29 -
    1.30 -===================================================================
    1.31 ---- glibc-2.2.2/linuxthreads_db.orig/td_init.c	1999-11-22 12:52:34.000000000 -0800
    1.32 -+++ glibc-2.2.2/linuxthreads_db/td_init.c	2005-01-27 19:05:36.000000000 -0800
    1.33 -@@ -27,6 +27,6 @@
    1.34 - td_init (void)
    1.35 - {
    1.36 -   /* XXX We have to figure out what has to be done.  */
    1.37 --  LOG (__FUNCTION__);
    1.38 -+  LOG ("td_init");
    1.39 -   return TD_OK;
    1.40 - }
    1.41 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_log.c glibc-2.2.2/linuxthreads_db/td_log.c
    1.42 ---- glibc-2.2.2/linuxthreads_db.orig/td_log.c	1999-10-07 23:31:32.000000000 -0700
    1.43 -+++ glibc-2.2.2/linuxthreads_db/td_log.c	2005-01-27 19:05:29.000000000 -0800
    1.44 -@@ -27,6 +27,6 @@
    1.45 -   /* This interface is deprecated in the Sun interface.  We provide it
    1.46 -      for compatibility but don't do anyhting ourself.  We might in
    1.47 -      future do some logging if this seems reasonable.  */
    1.48 --  LOG (__FUNCTION__);
    1.49 -+  LOG ("td_log");
    1.50 -   return TD_OK;
    1.51 - }
    1.52 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_clear_event.c glibc-2.2.2/linuxthreads_db/td_ta_clear_event.c
    1.53 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_clear_event.c	1999-11-08 14:52:10.000000000 -0800
    1.54 -+++ glibc-2.2.2/linuxthreads_db/td_ta_clear_event.c	2005-01-27 19:05:20.000000000 -0800
    1.55 -@@ -22,14 +22,12 @@
    1.56 - 
    1.57 - 
    1.58 - td_err_e
    1.59 --td_ta_clear_event (ta, event)
    1.60 --     const td_thragent_t *ta;
    1.61 --     td_thr_events_t *event;
    1.62 -+td_ta_clear_event (const td_thragent_t *ta, td_thr_events_t *event)
    1.63 - {
    1.64 -   td_thr_events_t old_event;
    1.65 -   int i;
    1.66 - 
    1.67 --  LOG (__FUNCTION__);
    1.68 -+  LOG ("td_ta_clear_event");
    1.69 - 
    1.70 -   /* Test whether the TA parameter is ok.  */
    1.71 -   if (! ta_ok (ta))
    1.72 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c glibc-2.2.2/linuxthreads_db/td_ta_delete.c
    1.73 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c	1999-11-08 14:52:10.000000000 -0800
    1.74 -+++ glibc-2.2.2/linuxthreads_db/td_ta_delete.c	2005-01-27 19:04:59.000000000 -0800
    1.75 -@@ -26,7 +26,7 @@
    1.76 - td_err_e
    1.77 - td_ta_delete (td_thragent_t *ta)
    1.78 - {
    1.79 --  LOG (__FUNCTION__);
    1.80 -+  LOG ("td_ta_delete");
    1.81 - 
    1.82 -   /* Safety check.  */
    1.83 -   if (ta == NULL || __td_agent_list == NULL)
    1.84 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_enable_stats.c glibc-2.2.2/linuxthreads_db/td_ta_enable_stats.c
    1.85 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_enable_stats.c	1999-11-08 14:52:10.000000000 -0800
    1.86 -+++ glibc-2.2.2/linuxthreads_db/td_ta_enable_stats.c	2005-01-27 19:04:50.000000000 -0800
    1.87 -@@ -25,7 +25,7 @@
    1.88 - td_ta_enable_stats (const td_thragent_t *ta, int enable)
    1.89 - {
    1.90 -   /* XXX We have to figure out what has to be done.  */
    1.91 --  LOG (__FUNCTION__);
    1.92 -+  LOG ("td_ta_enable_stats");
    1.93 - 
    1.94 -   /* Test whether the TA parameter is ok.  */
    1.95 -   if (! ta_ok (ta))
    1.96 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_event_addr.c glibc-2.2.2/linuxthreads_db/td_ta_event_addr.c
    1.97 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_addr.c	1999-11-08 14:52:10.000000000 -0800
    1.98 -+++ glibc-2.2.2/linuxthreads_db/td_ta_event_addr.c	2005-01-27 19:04:41.000000000 -0800
    1.99 -@@ -29,7 +29,7 @@
   1.100 -   td_err_e res = TD_NOEVENT;
   1.101 -   const char *symbol = NULL;
   1.102 - 
   1.103 --  LOG (__FUNCTION__);
   1.104 -+  LOG ("td_ta_event_addr");
   1.105 - 
   1.106 -   /* Test whether the TA parameter is ok.  */
   1.107 -   if (! ta_ok (ta))
   1.108 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_event_getmsg.c glibc-2.2.2/linuxthreads_db/td_ta_event_getmsg.c
   1.109 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_getmsg.c	1999-11-08 14:52:10.000000000 -0800
   1.110 -+++ glibc-2.2.2/linuxthreads_db/td_ta_event_getmsg.c	2005-01-27 19:04:33.000000000 -0800
   1.111 -@@ -32,7 +32,7 @@
   1.112 -   td_eventbuf_t event;
   1.113 -   psaddr_t addr;
   1.114 - 
   1.115 --  LOG (__FUNCTION__);
   1.116 -+  LOG ("td_ta_event_getmsg");
   1.117 - 
   1.118 -   /* Test whether the TA parameter is ok.  */
   1.119 -   if (! ta_ok (ta))
   1.120 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_get_nthreads.c glibc-2.2.2/linuxthreads_db/td_ta_get_nthreads.c
   1.121 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_nthreads.c	1999-11-08 14:52:10.000000000 -0800
   1.122 -+++ glibc-2.2.2/linuxthreads_db/td_ta_get_nthreads.c	2005-01-27 19:04:25.000000000 -0800
   1.123 -@@ -26,7 +26,7 @@
   1.124 - {
   1.125 -   psaddr_t addr;
   1.126 - 
   1.127 --  LOG (__FUNCTION__);
   1.128 -+  LOG ("td_ta_get_nthreads");
   1.129 - 
   1.130 -   /* Test whether the TA parameter is ok.  */
   1.131 -   if (! ta_ok (ta))
   1.132 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_get_ph.c glibc-2.2.2/linuxthreads_db/td_ta_get_ph.c
   1.133 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_ph.c	1999-11-08 14:52:10.000000000 -0800
   1.134 -+++ glibc-2.2.2/linuxthreads_db/td_ta_get_ph.c	2005-01-27 19:04:17.000000000 -0800
   1.135 -@@ -24,7 +24,7 @@
   1.136 - td_err_e
   1.137 - td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
   1.138 - {
   1.139 --  LOG (__FUNCTION__);
   1.140 -+  LOG ("td_ta_get_ph");
   1.141 - 
   1.142 -   /* Test whether the TA parameter is ok.  */
   1.143 -   if (! ta_ok (ta))
   1.144 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_get_stats.c glibc-2.2.2/linuxthreads_db/td_ta_get_stats.c
   1.145 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_stats.c	1999-11-08 14:52:10.000000000 -0800
   1.146 -+++ glibc-2.2.2/linuxthreads_db/td_ta_get_stats.c	2005-01-27 19:04:06.000000000 -0800
   1.147 -@@ -25,7 +25,7 @@
   1.148 - td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
   1.149 - {
   1.150 -   /* XXX We have to figure out what has to be done.  */
   1.151 --  LOG (__FUNCTION__);
   1.152 -+  LOG ("td_ta_get_stats");
   1.153 - 
   1.154 -   /* Test whether the TA parameter is ok.  */
   1.155 -   if (! ta_ok (ta))
   1.156 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_map_id2thr.c glibc-2.2.2/linuxthreads_db/td_ta_map_id2thr.c
   1.157 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_id2thr.c	1999-11-08 14:52:10.000000000 -0800
   1.158 -+++ glibc-2.2.2/linuxthreads_db/td_ta_map_id2thr.c	2005-01-27 19:03:54.000000000 -0800
   1.159 -@@ -28,7 +28,7 @@
   1.160 -   struct _pthread_descr_struct pds;
   1.161 -   int pthread_threads_max;
   1.162 - 
   1.163 --  LOG (__FUNCTION__);
   1.164 -+  LOG ("td_ta_map_id2thr");
   1.165 - 
   1.166 -   /* Test whether the TA parameter is ok.  */
   1.167 -   if (! ta_ok (ta))
   1.168 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_map_lwp2thr.c glibc-2.2.2/linuxthreads_db/td_ta_map_lwp2thr.c
   1.169 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_lwp2thr.c	1999-11-22 18:25:26.000000000 -0800
   1.170 -+++ glibc-2.2.2/linuxthreads_db/td_ta_map_lwp2thr.c	2005-01-27 19:03:46.000000000 -0800
   1.171 -@@ -34,7 +34,7 @@
   1.172 - # define num 1
   1.173 - #endif
   1.174 - 
   1.175 --  LOG (__FUNCTION__);
   1.176 -+  LOG ("td_ta_map_lwp2thr");
   1.177 - 
   1.178 -   /* Test whether the TA parameter is ok.  */
   1.179 -   if (! ta_ok (ta))
   1.180 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c glibc-2.2.2/linuxthreads_db/td_ta_new.c
   1.181 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c	1999-11-08 14:52:10.000000000 -0800
   1.182 -+++ glibc-2.2.2/linuxthreads_db/td_ta_new.c	2005-01-27 19:03:36.000000000 -0800
   1.183 -@@ -36,7 +36,7 @@
   1.184 -   psaddr_t addr;
   1.185 -   struct agent_list *elemp;
   1.186 - 
   1.187 --  LOG (__FUNCTION__);
   1.188 -+  LOG ("td_ta_new");
   1.189 - 
   1.190 -   /* Get the global event mask.  This is one of the variables which
   1.191 -      are new in the thread library to enable debugging.  If it is
   1.192 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_reset_stats.c glibc-2.2.2/linuxthreads_db/td_ta_reset_stats.c
   1.193 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_reset_stats.c	1999-11-08 14:52:10.000000000 -0800
   1.194 -+++ glibc-2.2.2/linuxthreads_db/td_ta_reset_stats.c	2005-01-27 19:03:27.000000000 -0800
   1.195 -@@ -25,7 +25,7 @@
   1.196 - td_ta_reset_stats (const td_thragent_t *ta)
   1.197 - {
   1.198 -   /* XXX We have to figure out what has to be done.  */
   1.199 --  LOG (__FUNCTION__);
   1.200 -+  LOG ("td_ta_reset_stats");
   1.201 - 
   1.202 -   /* Test whether the TA parameter is ok.  */
   1.203 -   if (! ta_ok (ta))
   1.204 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_set_event.c glibc-2.2.2/linuxthreads_db/td_ta_set_event.c
   1.205 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_set_event.c	1999-11-08 14:52:10.000000000 -0800
   1.206 -+++ glibc-2.2.2/linuxthreads_db/td_ta_set_event.c	2005-01-27 19:03:15.000000000 -0800
   1.207 -@@ -22,14 +22,12 @@
   1.208 - 
   1.209 - 
   1.210 - td_err_e
   1.211 --td_ta_set_event (ta, event)
   1.212 --     const td_thragent_t *ta;
   1.213 --     td_thr_events_t *event;
   1.214 -+td_ta_set_event (const td_thragent_t *ta, td_thr_events_t *event)
   1.215 - {
   1.216 -   td_thr_events_t old_event;
   1.217 -   int i;
   1.218 - 
   1.219 --  LOG (__FUNCTION__);
   1.220 -+  LOG ("td_ta_set_event");
   1.221 - 
   1.222 -   /* Test whether the TA parameter is ok.  */
   1.223 -   if (! ta_ok (ta))
   1.224 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c
   1.225 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c	1999-11-08 14:52:10.000000000 -0800
   1.226 -+++ glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c	2005-01-27 19:02:48.000000000 -0800
   1.227 -@@ -25,7 +25,7 @@
   1.228 - td_ta_setconcurrency (const td_thragent_t *ta, int level)
   1.229 - {
   1.230 -   /* This is something LinuxThreads does not support.  */
   1.231 --  LOG (__FUNCTION__);
   1.232 -+  LOG ("td_ta_setconcurrency");
   1.233 - 
   1.234 -   /* Test whether the TA parameter is ok.  */
   1.235 -   if (! ta_ok (ta))
   1.236 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_thr_iter.c glibc-2.2.2/linuxthreads_db/td_ta_thr_iter.c
   1.237 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_thr_iter.c	2000-02-28 12:34:06.000000000 -0800
   1.238 -+++ glibc-2.2.2/linuxthreads_db/td_ta_thr_iter.c	2005-01-27 19:02:39.000000000 -0800
   1.239 -@@ -86,7 +86,7 @@
   1.240 - # define num 1
   1.241 - #endif
   1.242 - 
   1.243 --  LOG (__FUNCTION__);
   1.244 -+  LOG ("td_ta_thr_iter");
   1.245 - 
   1.246 -   /* Test whether the TA parameter is ok.  */
   1.247 -   if (! ta_ok (ta))
   1.248 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_tsd_iter.c glibc-2.2.2/linuxthreads_db/td_ta_tsd_iter.c
   1.249 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_tsd_iter.c	2000-02-28 12:34:06.000000000 -0800
   1.250 -+++ glibc-2.2.2/linuxthreads_db/td_ta_tsd_iter.c	2005-01-27 19:02:29.000000000 -0800
   1.251 -@@ -29,7 +29,7 @@
   1.252 -   int pthread_keys_max;
   1.253 -   int cnt;
   1.254 - 
   1.255 --  LOG (__FUNCTION__);
   1.256 -+  LOG ("td_ta_tsd_iter");
   1.257 - 
   1.258 -   /* Test whether the TA parameter is ok.  */
   1.259 -   if (! ta_ok (ta))
   1.260 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_clear_event.c glibc-2.2.2/linuxthreads_db/td_thr_clear_event.c
   1.261 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_clear_event.c	1999-11-03 10:37:18.000000000 -0800
   1.262 -+++ glibc-2.2.2/linuxthreads_db/td_thr_clear_event.c	2005-01-27 19:02:19.000000000 -0800
   1.263 -@@ -24,14 +24,12 @@
   1.264 - 
   1.265 - 
   1.266 - td_err_e
   1.267 --td_thr_clear_event (th, event)
   1.268 --     const td_thrhandle_t *th;
   1.269 --     td_thr_events_t *event;
   1.270 -+td_thr_clear_event (const td_thrhandle_t *th, td_thr_events_t *event)
   1.271 - {
   1.272 -   td_thr_events_t old_event;
   1.273 -   int i;
   1.274 - 
   1.275 --  LOG (__FUNCTION__);
   1.276 -+  LOG ("td_thr_clear_event");
   1.277 - 
   1.278 -   /* Write the new value into the thread data structure.  */
   1.279 -   if (ps_pdread (th->th_ta_p->ph,
   1.280 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c
   1.281 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c	1999-10-07 23:40:02.000000000 -0700
   1.282 -+++ glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c	2005-01-27 19:01:54.000000000 -0800
   1.283 -@@ -25,6 +25,6 @@
   1.284 - td_thr_dbresume (const td_thrhandle_t *th)
   1.285 - {
   1.286 -   /* XXX We have to figure out what has to be done.  */
   1.287 --  LOG (__FUNCTION__);
   1.288 -+  LOG ("td_thr_dbresume");
   1.289 -   return TD_NOCAPAB;
   1.290 - }
   1.291 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c
   1.292 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c	1999-10-07 23:40:33.000000000 -0700
   1.293 -+++ glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c	2005-01-27 19:01:46.000000000 -0800
   1.294 -@@ -25,6 +25,6 @@
   1.295 - td_thr_dbsuspend (const td_thrhandle_t *th)
   1.296 - {
   1.297 -   /* XXX We have to figure out what has to be done.  */
   1.298 --  LOG (__FUNCTION__);
   1.299 -+  LOG ("td_thr_dbsuspend");
   1.300 -   return TD_NOCAPAB;
   1.301 - }
   1.302 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_event_enable.c glibc-2.2.2/linuxthreads_db/td_thr_event_enable.c
   1.303 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_enable.c	1999-11-02 16:06:10.000000000 -0800
   1.304 -+++ glibc-2.2.2/linuxthreads_db/td_thr_event_enable.c	2005-01-27 19:01:35.000000000 -0800
   1.305 -@@ -24,11 +24,9 @@
   1.306 - 
   1.307 - 
   1.308 - td_err_e
   1.309 --td_thr_event_enable (th, onoff)
   1.310 --     const td_thrhandle_t *th;
   1.311 --     int onoff;
   1.312 -+td_thr_event_enable (const td_thrhandle_t *th, int onoff)
   1.313 - {
   1.314 --  LOG (__FUNCTION__);
   1.315 -+  LOG ("td_thr_event_enable");
   1.316 - 
   1.317 -   /* Write the new value into the thread data structure.  */
   1.318 -   if (ps_pdwrite (th->th_ta_p->ph,
   1.319 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_event_getmsg.c glibc-2.2.2/linuxthreads_db/td_thr_event_getmsg.c
   1.320 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_getmsg.c	1999-11-02 16:06:10.000000000 -0800
   1.321 -+++ glibc-2.2.2/linuxthreads_db/td_thr_event_getmsg.c	2005-01-27 19:01:11.000000000 -0800
   1.322 -@@ -29,7 +29,7 @@
   1.323 - {
   1.324 -   td_eventbuf_t event;
   1.325 - 
   1.326 --  LOG (__FUNCTION__);
   1.327 -+  LOG ("td_thr_event_getmsg");
   1.328 - 
   1.329 -   /* Read the even structure from the target.  */
   1.330 -   if (ps_pdread (th->th_ta_p->ph,
   1.331 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_get_info.c glibc-2.2.2/linuxthreads_db/td_thr_get_info.c
   1.332 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_get_info.c	2000-05-01 14:56:42.000000000 -0700
   1.333 -+++ glibc-2.2.2/linuxthreads_db/td_thr_get_info.c	2005-01-27 19:00:59.000000000 -0800
   1.334 -@@ -29,7 +29,7 @@
   1.335 - {
   1.336 -   struct _pthread_descr_struct pds;
   1.337 - 
   1.338 --  LOG (__FUNCTION__);
   1.339 -+  LOG ("td_thr_get_info");
   1.340 - 
   1.341 -   /* Get the thread descriptor.  */
   1.342 -   if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   1.343 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c
   1.344 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c	1999-11-02 16:06:10.000000000 -0800
   1.345 -+++ glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c	2005-01-27 19:00:49.000000000 -0800
   1.346 -@@ -26,7 +26,7 @@
   1.347 - {
   1.348 -   struct _pthread_descr_struct pds;
   1.349 - 
   1.350 --  LOG (__FUNCTION__);
   1.351 -+  LOG ("td_thr_getfpregs");
   1.352 - 
   1.353 -   /* We have to get the state and the PID for this thread.  */
   1.354 -   if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   1.355 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c
   1.356 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c	2000-02-11 15:48:51.000000000 -0800
   1.357 -+++ glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c	2005-01-27 19:00:37.000000000 -0800
   1.358 -@@ -26,7 +26,7 @@
   1.359 - {
   1.360 -   struct _pthread_descr_struct pds;
   1.361 - 
   1.362 --  LOG (__FUNCTION__);
   1.363 -+  LOG ("td_thr_getgregs");
   1.364 - 
   1.365 -   /* We have to get the state and the PID for this thread.  */
   1.366 -   if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   1.367 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c
   1.368 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c	1999-10-07 23:46:09.000000000 -0700
   1.369 -+++ glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c	2005-01-27 19:00:26.000000000 -0800
   1.370 -@@ -25,6 +25,6 @@
   1.371 - td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
   1.372 - {
   1.373 -   /* XXX This might be platform specific.  */
   1.374 --  LOG (__FUNCTION__);
   1.375 -+  LOG ("td_thr_getxregs");
   1.376 -   return TD_NOXREGS;
   1.377 - }
   1.378 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c
   1.379 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c	1999-10-07 23:46:33.000000000 -0700
   1.380 -+++ glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c	2005-01-27 19:00:16.000000000 -0800
   1.381 -@@ -25,6 +25,6 @@
   1.382 - td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
   1.383 - {
   1.384 -   /* XXX This might be platform specific.  */
   1.385 --  LOG (__FUNCTION__);
   1.386 -+  LOG ("td_thr_getxregsize");
   1.387 -   return TD_NOXREGS;
   1.388 - }
   1.389 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_set_event.c glibc-2.2.2/linuxthreads_db/td_thr_set_event.c
   1.390 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_set_event.c	1999-11-03 10:37:18.000000000 -0800
   1.391 -+++ glibc-2.2.2/linuxthreads_db/td_thr_set_event.c	2005-01-27 19:00:08.000000000 -0800
   1.392 -@@ -24,14 +24,12 @@
   1.393 - 
   1.394 - 
   1.395 - td_err_e
   1.396 --td_thr_set_event (th, event)
   1.397 --     const td_thrhandle_t *th;
   1.398 --     td_thr_events_t *event;
   1.399 -+td_thr_set_event (const td_thrhandle_t *th, td_thr_events_t *event)
   1.400 - {
   1.401 -   td_thr_events_t old_event;
   1.402 -   int i;
   1.403 - 
   1.404 --  LOG (__FUNCTION__);
   1.405 -+  LOG ("td_thr_set_event");
   1.406 - 
   1.407 -   /* Write the new value into the thread data structure.  */
   1.408 -   if (ps_pdread (th->th_ta_p->ph,
   1.409 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c
   1.410 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c	1999-11-02 16:06:10.000000000 -0800
   1.411 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c	2005-01-27 18:59:06.000000000 -0800
   1.412 -@@ -26,7 +26,7 @@
   1.413 - {
   1.414 -   struct _pthread_descr_struct pds;
   1.415 - 
   1.416 --  LOG (__FUNCTION__);
   1.417 -+  LOG ("td_thr_setfpregs");
   1.418 - 
   1.419 -   /* We have to get the state and the PID for this thread.  */
   1.420 -   if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   1.421 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c
   1.422 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c	2000-02-11 15:48:51.000000000 -0800
   1.423 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c	2005-01-27 18:58:57.000000000 -0800
   1.424 -@@ -26,7 +26,7 @@
   1.425 - {
   1.426 -   struct _pthread_descr_struct pds;
   1.427 - 
   1.428 --  LOG (__FUNCTION__);
   1.429 -+  LOG ("td_thr_setgregs");
   1.430 - 
   1.431 -   /* We have to get the state and the PID for this thread.  */
   1.432 -   if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   1.433 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c glibc-2.2.2/linuxthreads_db/td_thr_setprio.c
   1.434 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c	1999-10-07 23:49:11.000000000 -0700
   1.435 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setprio.c	2005-01-27 18:58:46.000000000 -0800
   1.436 -@@ -25,6 +25,6 @@
   1.437 - td_thr_setprio (const td_thrhandle_t *th, int prio)
   1.438 - {
   1.439 -   /* XXX We have to figure out what has to be done.  */
   1.440 --  LOG (__FUNCTION__);
   1.441 -+  LOG ("td_thr_setprio");
   1.442 -   return TD_OK;
   1.443 - }
   1.444 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c
   1.445 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c	1999-10-07 23:49:38.000000000 -0700
   1.446 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c	2005-01-27 18:58:34.000000000 -0800
   1.447 -@@ -26,6 +26,6 @@
   1.448 - 		      const sigset_t *ss)
   1.449 - {
   1.450 -   /* XXX We have to figure out what has to be done.  */
   1.451 --  LOG (__FUNCTION__);
   1.452 -+  LOG ("td_thr_setsigpending");
   1.453 -   return TD_OK;
   1.454 - }
   1.455 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c
   1.456 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c	1999-10-07 23:48:20.000000000 -0700
   1.457 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c	2005-01-27 18:58:21.000000000 -0800
   1.458 -@@ -25,6 +25,6 @@
   1.459 - td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
   1.460 - {
   1.461 -   /* XXX This might have to be platform specific.  */
   1.462 --  LOG (__FUNCTION__);
   1.463 -+  LOG ("td_thr_setxregs");
   1.464 -   return TD_NOXREGS;
   1.465 - }
   1.466 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c
   1.467 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c	1999-10-07 23:50:34.000000000 -0700
   1.468 -+++ glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c	2005-01-27 18:57:58.000000000 -0800
   1.469 -@@ -25,6 +25,6 @@
   1.470 - td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
   1.471 - {
   1.472 -   /* XXX We have to figure out what has to be done.  */
   1.473 --  LOG (__FUNCTION__);
   1.474 -+  LOG ("td_thr_sigsetmask");
   1.475 -   return TD_OK;
   1.476 - }
   1.477 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c glibc-2.2.2/linuxthreads_db/td_thr_tsd.c
   1.478 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c	1999-10-07 23:52:15.000000000 -0700
   1.479 -+++ glibc-2.2.2/linuxthreads_db/td_thr_tsd.c	2005-01-27 18:58:09.000000000 -0800
   1.480 -@@ -33,7 +33,7 @@
   1.481 -   unsigned int idx2nd;
   1.482 -   void *p;
   1.483 - 
   1.484 --  LOG (__FUNCTION__);
   1.485 -+  LOG ("td_thr_tsd");
   1.486 - 
   1.487 -   /* Get the thread descriptor.  */
   1.488 -   if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   1.489 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c glibc-2.2.2/linuxthreads_db/td_thr_validate.c
   1.490 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c	1999-10-14 17:24:20.000000000 -0700
   1.491 -+++ glibc-2.2.2/linuxthreads_db/td_thr_validate.c	2005-01-27 18:57:41.000000000 -0800
   1.492 -@@ -28,7 +28,7 @@
   1.493 -   int pthread_threads_max = th->th_ta_p->pthread_threads_max;
   1.494 -   int cnt;
   1.495 - 
   1.496 --  LOG (__FUNCTION__);
   1.497 -+  LOG ("td_thr_validate");
   1.498 - 
   1.499 -   /* Now get all descriptors, one after the other.  */
   1.500 -   for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)