1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/linuxthreads-2.1.3/rh62-99-glibc-2.1.3-allow-gcc-3.4-td.patch Tue May 22 20:36:05 2007 +0000
1.3 @@ -0,0 +1,808 @@
1.4 +Fixes following error building glibc-2.2.5 with gcc-3.4:
1.5 +td_init.c: In function `td_init':
1.6 +td_init.c:30: error: parse error before string constant
1.7 +td_init.c:30: error: parse error before string constant
1.8 +make[2]: *** [/home/dank/wk/crosstool-0.28-rc4h/build/i686-unknown-linux-gnu/gcc-3.4.0-20040406-glibc-2.2.5/build-glibc/linuxthreads_db/td_init.os] Error 1
1.9 +
1.10 +# Retrieved by diffing a +-1 day rng around the time mentioned
1.11 +# in http://sources.redhat.com/ml/glibc-cvs/2001-q4/msg00654.html
1.12 +# cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc diff -u -D"2001-12-27 08:41:30" -D"2001-12-29 08:41:32"
1.13 +# then fixing paths.
1.14 +
1.15 +# And then removing hunks that don't apply to rh6.2's glibc-2.1.3
1.16 +# (thankfully, all were comments)
1.17 +# and rediffing one hunk for glibc-2.1.3
1.18 +
1.19 +Index: td_init.c
1.20 +===================================================================
1.21 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_init.c,v
1.22 +retrieving revision 1.3
1.23 +retrieving revision 1.4
1.24 +diff -u -r1.3 -r1.4
1.25 +--- libc/linuxthreads_db/td_init.c 6 Jul 2001 05:27:23 -0000 1.3
1.26 ++++ libc/linuxthreads_db/td_init.c 28 Dec 2001 16:41:29 -0000 1.4
1.27 +@@ -1,5 +1,5 @@
1.28 + /* Initialization function of thread debugger support library.
1.29 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.30 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.31 + This file is part of the GNU C Library.
1.32 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.33 +
1.34 +@@ -27,6 +27,6 @@
1.35 + td_init (void)
1.36 + {
1.37 + /* XXX We have to figure out what has to be done. */
1.38 +- LOG (__FUNCTION__);
1.39 ++ LOG ("td_init");
1.40 + return TD_OK;
1.41 + }
1.42 +Index: td_log.c
1.43 +===================================================================
1.44 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_log.c,v
1.45 +retrieving revision 1.2
1.46 +retrieving revision 1.3
1.47 +diff -u -r1.2 -r1.3
1.48 +--- libc/linuxthreads_db/td_log.c 6 Jul 2001 05:27:23 -0000 1.2
1.49 ++++ libc/linuxthreads_db/td_log.c 28 Dec 2001 16:41:29 -0000 1.3
1.50 +@@ -1,5 +1,5 @@
1.51 + /* Noop, left for historical reasons.
1.52 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.53 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.54 + This file is part of the GNU C Library.
1.55 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.56 +
1.57 +@@ -25,8 +25,8 @@
1.58 + td_log (void)
1.59 + {
1.60 + /* This interface is deprecated in the Sun interface. We provide it
1.61 +- for compatibility but don't do anyhting ourself. We might in
1.62 ++ for compatibility but don't do anything ourself. We might in
1.63 + future do some logging if this seems reasonable. */
1.64 +- LOG (__FUNCTION__);
1.65 ++ LOG ("td_log");
1.66 + return TD_OK;
1.67 + }
1.68 +Index: td_ta_clear_event.c
1.69 +===================================================================
1.70 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_clear_event.c,v
1.71 +retrieving revision 1.3
1.72 +retrieving revision 1.4
1.73 +diff -u -r1.3 -r1.4
1.74 +--- libc/linuxthreads_db/td_ta_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
1.75 ++++ libc/linuxthreads_db/td_ta_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
1.76 +@@ -1,5 +1,5 @@
1.77 + /* Globally disable events.
1.78 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.79 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.80 + This file is part of the GNU C Library.
1.81 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.82 +
1.83 +@@ -29,7 +29,7 @@
1.84 + td_thr_events_t old_event;
1.85 + int i;
1.86 +
1.87 +- LOG (__FUNCTION__);
1.88 ++ LOG ("td_ta_clear_event");
1.89 +
1.90 + /* Test whether the TA parameter is ok. */
1.91 + if (! ta_ok (ta))
1.92 +Index: td_ta_delete.c
1.93 +===================================================================
1.94 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_delete.c,v
1.95 +retrieving revision 1.3
1.96 +retrieving revision 1.4
1.97 +diff -u -r1.3 -r1.4
1.98 +--- libc/linuxthreads_db/td_ta_delete.c 6 Jul 2001 05:27:23 -0000 1.3
1.99 ++++ libc/linuxthreads_db/td_ta_delete.c 28 Dec 2001 16:41:29 -0000 1.4
1.100 +@@ -1,5 +1,5 @@
1.101 + /* Detach to target process.
1.102 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.103 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.104 + This file is part of the GNU C Library.
1.105 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.106 +
1.107 +@@ -26,7 +26,7 @@
1.108 + td_err_e
1.109 + td_ta_delete (td_thragent_t *ta)
1.110 + {
1.111 +- LOG (__FUNCTION__);
1.112 ++ LOG ("td_ta_delete");
1.113 +
1.114 + /* Safety check. */
1.115 + if (ta == NULL || __td_agent_list == NULL)
1.116 +Index: td_ta_enable_stats.c
1.117 +===================================================================
1.118 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_enable_stats.c,v
1.119 +retrieving revision 1.3
1.120 +retrieving revision 1.4
1.121 +diff -u -r1.3 -r1.4
1.122 +--- libc/linuxthreads_db/td_ta_enable_stats.c 6 Jul 2001 05:27:23 -0000 1.3
1.123 ++++ libc/linuxthreads_db/td_ta_enable_stats.c 28 Dec 2001 16:41:29 -0000 1.4
1.124 +@@ -1,5 +1,5 @@
1.125 + /* Enable collection of statistics for process.
1.126 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.127 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.128 + This file is part of the GNU C Library.
1.129 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.130 +
1.131 +@@ -25,7 +25,7 @@
1.132 + td_ta_enable_stats (const td_thragent_t *ta, int enable)
1.133 + {
1.134 + /* XXX We have to figure out what has to be done. */
1.135 +- LOG (__FUNCTION__);
1.136 ++ LOG ("td_ta_enable_stats");
1.137 +
1.138 + /* Test whether the TA parameter is ok. */
1.139 + if (! ta_ok (ta))
1.140 +Index: td_ta_event_addr.c
1.141 +===================================================================
1.142 +--- glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c~ Tue Nov 9 21:05:07 1999
1.143 ++++ glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c Sun Apr 11 22:23:28 2004
1.144 +@@ -29,7 +29,7 @@
1.145 + td_err_e res = TD_NOEVENT;
1.146 + const char *symbol = NULL;
1.147 +
1.148 +- LOG (__FUNCTION__);
1.149 ++ LOG ("td_ta_event_addr");
1.150 +
1.151 + /* Test whether the TA parameter is ok. */
1.152 + if (! ta_ok (ta))
1.153 +Index: td_ta_event_getmsg.c
1.154 +===================================================================
1.155 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_getmsg.c,v
1.156 +retrieving revision 1.5
1.157 +retrieving revision 1.6
1.158 +diff -u -r1.5 -r1.6
1.159 +--- libc/linuxthreads_db/td_ta_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.5
1.160 ++++ libc/linuxthreads_db/td_ta_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.6
1.161 +@@ -1,5 +1,5 @@
1.162 + /* Retrieve event.
1.163 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.164 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.165 + This file is part of the GNU C Library.
1.166 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.167 +
1.168 +@@ -32,7 +32,7 @@
1.169 + td_eventbuf_t event;
1.170 + psaddr_t addr;
1.171 +
1.172 +- LOG (__FUNCTION__);
1.173 ++ LOG ("td_ta_event_getmsg");
1.174 +
1.175 + /* Test whether the TA parameter is ok. */
1.176 + if (! ta_ok (ta))
1.177 +Index: td_ta_get_nthreads.c
1.178 +===================================================================
1.179 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_nthreads.c,v
1.180 +retrieving revision 1.5
1.181 +retrieving revision 1.6
1.182 +diff -u -r1.5 -r1.6
1.183 +--- libc/linuxthreads_db/td_ta_get_nthreads.c 6 Jul 2001 05:27:23 -0000 1.5
1.184 ++++ libc/linuxthreads_db/td_ta_get_nthreads.c 28 Dec 2001 16:41:29 -0000 1.6
1.185 +@@ -25,7 +25,7 @@
1.186 + {
1.187 + psaddr_t addr;
1.188 +
1.189 +- LOG (__FUNCTION__);
1.190 ++ LOG ("td_ta_get_nthreads");
1.191 +
1.192 + /* Test whether the TA parameter is ok. */
1.193 + if (! ta_ok (ta))
1.194 +Index: td_ta_get_ph.c
1.195 +===================================================================
1.196 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_ph.c,v
1.197 +retrieving revision 1.3
1.198 +retrieving revision 1.4
1.199 +diff -u -r1.3 -r1.4
1.200 +--- libc/linuxthreads_db/td_ta_get_ph.c 6 Jul 2001 05:27:23 -0000 1.3
1.201 ++++ libc/linuxthreads_db/td_ta_get_ph.c 28 Dec 2001 16:41:29 -0000 1.4
1.202 +@@ -1,5 +1,5 @@
1.203 + /* Get external process handle.
1.204 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.205 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.206 + This file is part of the GNU C Library.
1.207 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.208 +
1.209 +@@ -24,7 +24,7 @@
1.210 + td_err_e
1.211 + td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
1.212 + {
1.213 +- LOG (__FUNCTION__);
1.214 ++ LOG ("td_ta_get_ph");
1.215 +
1.216 + /* Test whether the TA parameter is ok. */
1.217 + if (! ta_ok (ta))
1.218 +Index: td_ta_get_stats.c
1.219 +===================================================================
1.220 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_stats.c,v
1.221 +retrieving revision 1.3
1.222 +retrieving revision 1.4
1.223 +diff -u -r1.3 -r1.4
1.224 +--- libc/linuxthreads_db/td_ta_get_stats.c 6 Jul 2001 05:27:23 -0000 1.3
1.225 ++++ libc/linuxthreads_db/td_ta_get_stats.c 28 Dec 2001 16:41:29 -0000 1.4
1.226 +@@ -1,5 +1,5 @@
1.227 + /* Retrieve statistics for process.
1.228 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.229 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.230 + This file is part of the GNU C Library.
1.231 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.232 +
1.233 +@@ -25,7 +25,7 @@
1.234 + td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
1.235 + {
1.236 + /* XXX We have to figure out what has to be done. */
1.237 +- LOG (__FUNCTION__);
1.238 ++ LOG ("td_ta_get_stats");
1.239 +
1.240 + /* Test whether the TA parameter is ok. */
1.241 + if (! ta_ok (ta))
1.242 +Index: td_ta_map_id2thr.c
1.243 +===================================================================
1.244 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_id2thr.c,v
1.245 +retrieving revision 1.4
1.246 +retrieving revision 1.5
1.247 +diff -u -r1.4 -r1.5
1.248 +--- libc/linuxthreads_db/td_ta_map_id2thr.c 6 Jul 2001 05:27:23 -0000 1.4
1.249 ++++ libc/linuxthreads_db/td_ta_map_id2thr.c 28 Dec 2001 16:41:29 -0000 1.5
1.250 +@@ -28,7 +28,7 @@
1.251 + struct _pthread_descr_struct pds;
1.252 + int pthread_threads_max;
1.253 +
1.254 +- LOG (__FUNCTION__);
1.255 ++ LOG ("td_ta_map_id2thr");
1.256 +
1.257 + /* Test whether the TA parameter is ok. */
1.258 + if (! ta_ok (ta))
1.259 +Index: td_ta_map_lwp2thr.c
1.260 +===================================================================
1.261 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_lwp2thr.c,v
1.262 +retrieving revision 1.5
1.263 +retrieving revision 1.6
1.264 +diff -u -r1.5 -r1.6
1.265 +--- libc/linuxthreads_db/td_ta_map_lwp2thr.c 6 Jul 2001 05:27:23 -0000 1.5
1.266 ++++ libc/linuxthreads_db/td_ta_map_lwp2thr.c 28 Dec 2001 16:41:29 -0000 1.6
1.267 +@@ -1,5 +1,5 @@
1.268 + /* Which thread is running on an lwp?
1.269 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.270 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.271 + This file is part of the GNU C Library.
1.272 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.273 +
1.274 +@@ -34,7 +34,7 @@
1.275 + # define num 1
1.276 + #endif
1.277 +
1.278 +- LOG (__FUNCTION__);
1.279 ++ LOG ("td_ta_map_lwp2thr");
1.280 +
1.281 + /* Test whether the TA parameter is ok. */
1.282 + if (! ta_ok (ta))
1.283 +Index: td_ta_new.c
1.284 +===================================================================
1.285 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_new.c,v
1.286 +retrieving revision 1.10
1.287 +retrieving revision 1.11
1.288 +diff -u -r1.10 -r1.11
1.289 +--- libc/linuxthreads_db/td_ta_new.c 6 Jul 2001 05:27:23 -0000 1.10
1.290 ++++ libc/linuxthreads_db/td_ta_new.c 28 Dec 2001 16:41:29 -0000 1.11
1.291 +@@ -35,7 +35,7 @@
1.292 + psaddr_t addr;
1.293 + struct agent_list *elemp;
1.294 +
1.295 +- LOG (__FUNCTION__);
1.296 ++ LOG ("td_ta_new");
1.297 +
1.298 + /* Get the global event mask. This is one of the variables which
1.299 + are new in the thread library to enable debugging. If it is
1.300 +Index: td_ta_reset_stats.c
1.301 +===================================================================
1.302 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_reset_stats.c,v
1.303 +retrieving revision 1.3
1.304 +retrieving revision 1.4
1.305 +diff -u -r1.3 -r1.4
1.306 +--- libc/linuxthreads_db/td_ta_reset_stats.c 6 Jul 2001 05:27:23 -0000 1.3
1.307 ++++ libc/linuxthreads_db/td_ta_reset_stats.c 28 Dec 2001 16:41:29 -0000 1.4
1.308 +@@ -1,5 +1,5 @@
1.309 + /* Reset statistics.
1.310 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.311 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.312 + This file is part of the GNU C Library.
1.313 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.314 +
1.315 +@@ -25,7 +25,7 @@
1.316 + td_ta_reset_stats (const td_thragent_t *ta)
1.317 + {
1.318 + /* XXX We have to figure out what has to be done. */
1.319 +- LOG (__FUNCTION__);
1.320 ++ LOG ("td_ta_reset_stats");
1.321 +
1.322 + /* Test whether the TA parameter is ok. */
1.323 + if (! ta_ok (ta))
1.324 +Index: td_ta_set_event.c
1.325 +===================================================================
1.326 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_set_event.c,v
1.327 +retrieving revision 1.4
1.328 +retrieving revision 1.5
1.329 +diff -u -r1.4 -r1.5
1.330 +--- libc/linuxthreads_db/td_ta_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
1.331 ++++ libc/linuxthreads_db/td_ta_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
1.332 +@@ -1,5 +1,5 @@
1.333 + /* Globally enable events.
1.334 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.335 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.336 + This file is part of the GNU C Library.
1.337 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.338 +
1.339 +@@ -29,7 +29,7 @@
1.340 + td_thr_events_t old_event;
1.341 + int i;
1.342 +
1.343 +- LOG (__FUNCTION__);
1.344 ++ LOG ("td_ta_set_event");
1.345 +
1.346 + /* Test whether the TA parameter is ok. */
1.347 + if (! ta_ok (ta))
1.348 +Index: td_ta_setconcurrency.c
1.349 +===================================================================
1.350 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_setconcurrency.c,v
1.351 +retrieving revision 1.3
1.352 +retrieving revision 1.4
1.353 +diff -u -r1.3 -r1.4
1.354 +--- libc/linuxthreads_db/td_ta_setconcurrency.c 6 Jul 2001 05:27:23 -0000 1.3
1.355 ++++ libc/linuxthreads_db/td_ta_setconcurrency.c 28 Dec 2001 16:41:29 -0000 1.4
1.356 +@@ -1,5 +1,5 @@
1.357 + /* Set suggested concurrency level for process.
1.358 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.359 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.360 + This file is part of the GNU C Library.
1.361 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.362 +
1.363 +@@ -25,7 +25,7 @@
1.364 + td_ta_setconcurrency (const td_thragent_t *ta, int level)
1.365 + {
1.366 + /* This is something LinuxThreads does not support. */
1.367 +- LOG (__FUNCTION__);
1.368 ++ LOG ("td_ta_setconcurrency");
1.369 +
1.370 + /* Test whether the TA parameter is ok. */
1.371 + if (! ta_ok (ta))
1.372 +Index: td_ta_thr_iter.c
1.373 +===================================================================
1.374 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_thr_iter.c,v
1.375 +retrieving revision 1.11
1.376 +retrieving revision 1.12
1.377 +diff -u -r1.11 -r1.12
1.378 +--- libc/linuxthreads_db/td_ta_thr_iter.c 6 Jul 2001 05:27:23 -0000 1.11
1.379 ++++ libc/linuxthreads_db/td_ta_thr_iter.c 28 Dec 2001 16:41:29 -0000 1.12
1.380 +@@ -86,7 +86,7 @@
1.381 + # define num 1
1.382 + #endif
1.383 +
1.384 +- LOG (__FUNCTION__);
1.385 ++ LOG ("td_ta_thr_iter");
1.386 +
1.387 + /* Test whether the TA parameter is ok. */
1.388 + if (! ta_ok (ta))
1.389 +Index: td_ta_tsd_iter.c
1.390 +===================================================================
1.391 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_tsd_iter.c,v
1.392 +retrieving revision 1.4
1.393 +retrieving revision 1.5
1.394 +diff -u -r1.4 -r1.5
1.395 +--- libc/linuxthreads_db/td_ta_tsd_iter.c 6 Jul 2001 05:27:23 -0000 1.4
1.396 ++++ libc/linuxthreads_db/td_ta_tsd_iter.c 28 Dec 2001 16:41:29 -0000 1.5
1.397 +@@ -29,7 +29,7 @@
1.398 + int pthread_keys_max;
1.399 + int cnt;
1.400 +
1.401 +- LOG (__FUNCTION__);
1.402 ++ LOG ("td_ta_tsd_iter");
1.403 +
1.404 + /* Test whether the TA parameter is ok. */
1.405 + if (! ta_ok (ta))
1.406 +Index: td_thr_clear_event.c
1.407 +===================================================================
1.408 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_clear_event.c,v
1.409 +retrieving revision 1.3
1.410 +retrieving revision 1.4
1.411 +diff -u -r1.3 -r1.4
1.412 +--- libc/linuxthreads_db/td_thr_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
1.413 ++++ libc/linuxthreads_db/td_thr_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
1.414 +@@ -1,5 +1,5 @@
1.415 + /* Disable specific event for thread.
1.416 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.417 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.418 + This file is part of the GNU C Library.
1.419 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.420 +
1.421 +@@ -31,7 +31,7 @@
1.422 + td_thr_events_t old_event;
1.423 + int i;
1.424 +
1.425 +- LOG (__FUNCTION__);
1.426 ++ LOG ("td_thr_clear_event");
1.427 +
1.428 + /* Write the new value into the thread data structure. */
1.429 + if (ps_pdread (th->th_ta_p->ph,
1.430 +Index: td_thr_dbresume.c
1.431 +===================================================================
1.432 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbresume.c,v
1.433 +retrieving revision 1.2
1.434 +retrieving revision 1.3
1.435 +diff -u -r1.2 -r1.3
1.436 +--- libc/linuxthreads_db/td_thr_dbresume.c 6 Jul 2001 05:27:23 -0000 1.2
1.437 ++++ libc/linuxthreads_db/td_thr_dbresume.c 28 Dec 2001 16:41:29 -0000 1.3
1.438 +@@ -1,5 +1,5 @@
1.439 + /* Resume execution of given thread.
1.440 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.441 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.442 + This file is part of the GNU C Library.
1.443 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.444 +
1.445 +@@ -25,6 +25,6 @@
1.446 + td_thr_dbresume (const td_thrhandle_t *th)
1.447 + {
1.448 + /* XXX We have to figure out what has to be done. */
1.449 +- LOG (__FUNCTION__);
1.450 ++ LOG ("td_thr_dbresume");
1.451 + return TD_NOCAPAB;
1.452 + }
1.453 +Index: td_thr_dbsuspend.c
1.454 +===================================================================
1.455 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbsuspend.c,v
1.456 +retrieving revision 1.2
1.457 +retrieving revision 1.3
1.458 +diff -u -r1.2 -r1.3
1.459 +--- libc/linuxthreads_db/td_thr_dbsuspend.c 6 Jul 2001 05:27:23 -0000 1.2
1.460 ++++ libc/linuxthreads_db/td_thr_dbsuspend.c 28 Dec 2001 16:41:29 -0000 1.3
1.461 +@@ -1,5 +1,5 @@
1.462 + /* Suspend execution of given thread.
1.463 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.464 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.465 + This file is part of the GNU C Library.
1.466 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.467 +
1.468 +@@ -25,6 +25,6 @@
1.469 + td_thr_dbsuspend (const td_thrhandle_t *th)
1.470 + {
1.471 + /* XXX We have to figure out what has to be done. */
1.472 +- LOG (__FUNCTION__);
1.473 ++ LOG ("td_thr_dbsuspend");
1.474 + return TD_NOCAPAB;
1.475 + }
1.476 +Index: td_thr_event_enable.c
1.477 +===================================================================
1.478 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_enable.c,v
1.479 +retrieving revision 1.3
1.480 +retrieving revision 1.4
1.481 +diff -u -r1.3 -r1.4
1.482 +--- libc/linuxthreads_db/td_thr_event_enable.c 6 Jul 2001 05:27:23 -0000 1.3
1.483 ++++ libc/linuxthreads_db/td_thr_event_enable.c 28 Dec 2001 16:41:29 -0000 1.4
1.484 +@@ -1,5 +1,5 @@
1.485 + /* Enable event process-wide.
1.486 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.487 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.488 + This file is part of the GNU C Library.
1.489 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.490 +
1.491 +@@ -28,7 +28,7 @@
1.492 + const td_thrhandle_t *th;
1.493 + int onoff;
1.494 + {
1.495 +- LOG (__FUNCTION__);
1.496 ++ LOG ("td_thr_event_enable");
1.497 +
1.498 + /* Write the new value into the thread data structure. */
1.499 + if (ps_pdwrite (th->th_ta_p->ph,
1.500 +Index: td_thr_event_getmsg.c
1.501 +===================================================================
1.502 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_getmsg.c,v
1.503 +retrieving revision 1.3
1.504 +retrieving revision 1.4
1.505 +diff -u -r1.3 -r1.4
1.506 +--- libc/linuxthreads_db/td_thr_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.3
1.507 ++++ libc/linuxthreads_db/td_thr_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.4
1.508 +@@ -1,5 +1,5 @@
1.509 + /* Retrieve event.
1.510 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.511 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.512 + This file is part of the GNU C Library.
1.513 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.514 +
1.515 +@@ -29,7 +29,7 @@
1.516 + {
1.517 + td_eventbuf_t event;
1.518 +
1.519 +- LOG (__FUNCTION__);
1.520 ++ LOG ("td_thr_event_getmsg");
1.521 +
1.522 + /* Read the even structure from the target. */
1.523 + if (ps_pdread (th->th_ta_p->ph,
1.524 +Index: td_thr_get_info.c
1.525 +===================================================================
1.526 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_get_info.c,v
1.527 +retrieving revision 1.9
1.528 +retrieving revision 1.10
1.529 +diff -u -r1.9 -r1.10
1.530 +--- libc/linuxthreads_db/td_thr_get_info.c 6 Jul 2001 05:27:23 -0000 1.9
1.531 ++++ libc/linuxthreads_db/td_thr_get_info.c 28 Dec 2001 16:41:29 -0000 1.10
1.532 +@@ -29,7 +29,7 @@
1.533 + {
1.534 + struct _pthread_descr_struct pds;
1.535 +
1.536 +- LOG (__FUNCTION__);
1.537 ++ LOG ("td_thr_get_info");
1.538 +
1.539 + /* Get the thread descriptor. */
1.540 + if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
1.541 +Index: td_thr_getfpregs.c
1.542 +===================================================================
1.543 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getfpregs.c,v
1.544 +retrieving revision 1.4
1.545 +retrieving revision 1.5
1.546 +diff -u -r1.4 -r1.5
1.547 +--- libc/linuxthreads_db/td_thr_getfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
1.548 ++++ libc/linuxthreads_db/td_thr_getfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
1.549 +@@ -26,7 +26,7 @@
1.550 + {
1.551 + struct _pthread_descr_struct pds;
1.552 +
1.553 +- LOG (__FUNCTION__);
1.554 ++ LOG ("td_thr_getfpregs");
1.555 +
1.556 + /* We have to get the state and the PID for this thread. */
1.557 + if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
1.558 +Index: td_thr_getgregs.c
1.559 +===================================================================
1.560 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getgregs.c,v
1.561 +retrieving revision 1.8
1.562 +retrieving revision 1.9
1.563 +diff -u -r1.8 -r1.9
1.564 +--- libc/linuxthreads_db/td_thr_getgregs.c 6 Jul 2001 05:27:23 -0000 1.8
1.565 ++++ libc/linuxthreads_db/td_thr_getgregs.c 28 Dec 2001 16:41:29 -0000 1.9
1.566 +@@ -26,7 +26,7 @@
1.567 + {
1.568 + struct _pthread_descr_struct pds;
1.569 +
1.570 +- LOG (__FUNCTION__);
1.571 ++ LOG ("td_thr_getgregs");
1.572 +
1.573 + /* We have to get the state and the PID for this thread. */
1.574 + if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
1.575 +Index: td_thr_getxregs.c
1.576 +===================================================================
1.577 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregs.c,v
1.578 +retrieving revision 1.2
1.579 +retrieving revision 1.3
1.580 +diff -u -r1.2 -r1.3
1.581 +--- libc/linuxthreads_db/td_thr_getxregs.c 6 Jul 2001 05:27:23 -0000 1.2
1.582 ++++ libc/linuxthreads_db/td_thr_getxregs.c 28 Dec 2001 16:41:29 -0000 1.3
1.583 +@@ -1,5 +1,5 @@
1.584 + /* Get a thread's extra state register set.
1.585 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.586 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.587 + This file is part of the GNU C Library.
1.588 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.589 +
1.590 +@@ -25,6 +25,6 @@
1.591 + td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
1.592 + {
1.593 + /* XXX This might be platform specific. */
1.594 +- LOG (__FUNCTION__);
1.595 ++ LOG ("td_thr_getxregs");
1.596 + return TD_NOXREGS;
1.597 + }
1.598 +Index: td_thr_getxregsize.c
1.599 +===================================================================
1.600 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregsize.c,v
1.601 +retrieving revision 1.2
1.602 +retrieving revision 1.3
1.603 +diff -u -r1.2 -r1.3
1.604 +--- libc/linuxthreads_db/td_thr_getxregsize.c 6 Jul 2001 05:27:23 -0000 1.2
1.605 ++++ libc/linuxthreads_db/td_thr_getxregsize.c 28 Dec 2001 16:41:29 -0000 1.3
1.606 +@@ -1,5 +1,5 @@
1.607 + /* Get the size of the extra state register set for this architecture.
1.608 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.609 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.610 + This file is part of the GNU C Library.
1.611 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.612 +
1.613 +@@ -25,6 +25,6 @@
1.614 + td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
1.615 + {
1.616 + /* XXX This might be platform specific. */
1.617 +- LOG (__FUNCTION__);
1.618 ++ LOG ("td_thr_getxregsize");
1.619 + return TD_NOXREGS;
1.620 + }
1.621 +Index: td_thr_set_event.c
1.622 +===================================================================
1.623 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_set_event.c,v
1.624 +retrieving revision 1.4
1.625 +retrieving revision 1.5
1.626 +diff -u -r1.4 -r1.5
1.627 +--- libc/linuxthreads_db/td_thr_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
1.628 ++++ libc/linuxthreads_db/td_thr_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
1.629 +@@ -1,5 +1,5 @@
1.630 + /* Enable specific event for thread.
1.631 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.632 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.633 + This file is part of the GNU C Library.
1.634 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.635 +
1.636 +@@ -31,7 +31,7 @@
1.637 + td_thr_events_t old_event;
1.638 + int i;
1.639 +
1.640 +- LOG (__FUNCTION__);
1.641 ++ LOG ("td_thr_set_event");
1.642 +
1.643 + /* Write the new value into the thread data structure. */
1.644 + if (ps_pdread (th->th_ta_p->ph,
1.645 +Index: td_thr_setfpregs.c
1.646 +===================================================================
1.647 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setfpregs.c,v
1.648 +retrieving revision 1.4
1.649 +retrieving revision 1.5
1.650 +diff -u -r1.4 -r1.5
1.651 +--- libc/linuxthreads_db/td_thr_setfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
1.652 ++++ libc/linuxthreads_db/td_thr_setfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
1.653 +@@ -26,7 +26,7 @@
1.654 + {
1.655 + struct _pthread_descr_struct pds;
1.656 +
1.657 +- LOG (__FUNCTION__);
1.658 ++ LOG ("td_thr_setfpregs");
1.659 +
1.660 + /* We have to get the state and the PID for this thread. */
1.661 + if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
1.662 +Index: td_thr_setgregs.c
1.663 +===================================================================
1.664 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setgregs.c,v
1.665 +retrieving revision 1.6
1.666 +retrieving revision 1.7
1.667 +diff -u -r1.6 -r1.7
1.668 +--- libc/linuxthreads_db/td_thr_setgregs.c 6 Jul 2001 05:27:23 -0000 1.6
1.669 ++++ libc/linuxthreads_db/td_thr_setgregs.c 28 Dec 2001 16:41:29 -0000 1.7
1.670 +@@ -26,7 +26,7 @@
1.671 + {
1.672 + struct _pthread_descr_struct pds;
1.673 +
1.674 +- LOG (__FUNCTION__);
1.675 ++ LOG ("td_thr_setgregs");
1.676 +
1.677 + /* We have to get the state and the PID for this thread. */
1.678 + if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
1.679 +Index: td_thr_setprio.c
1.680 +===================================================================
1.681 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setprio.c,v
1.682 +retrieving revision 1.2
1.683 +retrieving revision 1.3
1.684 +diff -u -r1.2 -r1.3
1.685 +--- libc/linuxthreads_db/td_thr_setprio.c 6 Jul 2001 05:27:23 -0000 1.2
1.686 ++++ libc/linuxthreads_db/td_thr_setprio.c 28 Dec 2001 16:41:29 -0000 1.3
1.687 +@@ -1,5 +1,5 @@
1.688 + /* Set a thread's priority.
1.689 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.690 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.691 + This file is part of the GNU C Library.
1.692 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.693 +
1.694 +@@ -25,6 +25,6 @@
1.695 + td_thr_setprio (const td_thrhandle_t *th, int prio)
1.696 + {
1.697 + /* XXX We have to figure out what has to be done. */
1.698 +- LOG (__FUNCTION__);
1.699 ++ LOG ("td_thr_setprio");
1.700 + return TD_OK;
1.701 + }
1.702 +Index: td_thr_setsigpending.c
1.703 +===================================================================
1.704 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setsigpending.c,v
1.705 +retrieving revision 1.2
1.706 +retrieving revision 1.3
1.707 +diff -u -r1.2 -r1.3
1.708 +--- libc/linuxthreads_db/td_thr_setsigpending.c 6 Jul 2001 05:27:23 -0000 1.2
1.709 ++++ libc/linuxthreads_db/td_thr_setsigpending.c 28 Dec 2001 16:41:29 -0000 1.3
1.710 +@@ -1,5 +1,5 @@
1.711 + /* Raise a signal for a thread.
1.712 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.713 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.714 + This file is part of the GNU C Library.
1.715 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.716 +
1.717 +@@ -26,6 +26,6 @@
1.718 + const sigset_t *ss)
1.719 + {
1.720 + /* XXX We have to figure out what has to be done. */
1.721 +- LOG (__FUNCTION__);
1.722 ++ LOG ("td_thr_setsigpending");
1.723 + return TD_OK;
1.724 + }
1.725 +Index: td_thr_setxregs.c
1.726 +===================================================================
1.727 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setxregs.c,v
1.728 +retrieving revision 1.2
1.729 +retrieving revision 1.3
1.730 +diff -u -r1.2 -r1.3
1.731 +--- libc/linuxthreads_db/td_thr_setxregs.c 6 Jul 2001 05:27:23 -0000 1.2
1.732 ++++ libc/linuxthreads_db/td_thr_setxregs.c 28 Dec 2001 16:41:29 -0000 1.3
1.733 +@@ -1,5 +1,5 @@
1.734 + /* Set a thread's extra state register set.
1.735 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.736 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.737 + This file is part of the GNU C Library.
1.738 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.739 +
1.740 +@@ -25,6 +25,6 @@
1.741 + td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
1.742 + {
1.743 + /* XXX This might have to be platform specific. */
1.744 +- LOG (__FUNCTION__);
1.745 ++ LOG ("td_thr_setxregs");
1.746 + return TD_NOXREGS;
1.747 + }
1.748 +Index: td_thr_sigsetmask.c
1.749 +===================================================================
1.750 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_sigsetmask.c,v
1.751 +retrieving revision 1.2
1.752 +retrieving revision 1.3
1.753 +diff -u -r1.2 -r1.3
1.754 +--- libc/linuxthreads_db/td_thr_sigsetmask.c 6 Jul 2001 05:27:23 -0000 1.2
1.755 ++++ libc/linuxthreads_db/td_thr_sigsetmask.c 28 Dec 2001 16:41:29 -0000 1.3
1.756 +@@ -1,5 +1,5 @@
1.757 + /* Set a thread's signal mask.
1.758 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.759 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.760 + This file is part of the GNU C Library.
1.761 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.762 +
1.763 +@@ -25,6 +25,6 @@
1.764 + td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
1.765 + {
1.766 + /* XXX We have to figure out what has to be done. */
1.767 +- LOG (__FUNCTION__);
1.768 ++ LOG ("td_thr_sigsetmask");
1.769 + return TD_OK;
1.770 + }
1.771 +Index: td_thr_tsd.c
1.772 +===================================================================
1.773 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_tsd.c,v
1.774 +retrieving revision 1.2
1.775 +retrieving revision 1.3
1.776 +diff -u -r1.2 -r1.3
1.777 +--- libc/linuxthreads_db/td_thr_tsd.c 6 Jul 2001 05:27:23 -0000 1.2
1.778 ++++ libc/linuxthreads_db/td_thr_tsd.c 28 Dec 2001 16:41:29 -0000 1.3
1.779 +@@ -1,5 +1,5 @@
1.780 + /* Get a thread-specific data pointer for a thread.
1.781 +- Copyright (C) 1999 Free Software Foundation, Inc.
1.782 ++ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
1.783 + This file is part of the GNU C Library.
1.784 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
1.785 +
1.786 +@@ -33,7 +33,7 @@
1.787 + unsigned int idx2nd;
1.788 + void *p;
1.789 +
1.790 +- LOG (__FUNCTION__);
1.791 ++ LOG ("td_thr_tsd");
1.792 +
1.793 + /* Get the thread descriptor. */
1.794 + if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
1.795 +Index: td_thr_validate.c
1.796 +===================================================================
1.797 +RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_validate.c,v
1.798 +retrieving revision 1.4
1.799 +retrieving revision 1.5
1.800 +diff -u -r1.4 -r1.5
1.801 +--- libc/linuxthreads_db/td_thr_validate.c 6 Jul 2001 05:27:23 -0000 1.4
1.802 ++++ libc/linuxthreads_db/td_thr_validate.c 28 Dec 2001 16:41:29 -0000 1.5
1.803 +@@ -28,7 +28,7 @@
1.804 + int pthread_threads_max = th->th_ta_p->pthread_threads_max;
1.805 + int cnt;
1.806 +
1.807 +- LOG (__FUNCTION__);
1.808 ++ LOG ("td_thr_validate");
1.809 +
1.810 + /* Now get all descriptors, one after the other. */
1.811 + for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)