Remove dead linuxthreads patches.
1.1 --- a/patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch Wed Aug 15 16:18:35 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,33 +0,0 @@
1.4 -http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/pthread/pthread.h.diff?r1=1.31&r2=1.32&cvsroot=glibc
1.5 -
1.6 -Fixes
1.7 -../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "__thread"
1.8 -../linuxthreads/sysdeps/pthread/pthread.h:141: error: `pthread_create' declared as function returning a function
1.9 -../linuxthreads/sysdeps/pthread/pthread.h:141: warning: function declaration isn't a prototype
1.10 -../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "void"
1.11 -../linuxthreads/sysdeps/pthread/pthread.h:462: error: storage class specified for parameter `type name'
1.12 -
1.13 -when compiling with gcc3.x
1.14 -
1.15 -Rediffed against glibc-2.1.3
1.16 -
1.17 ---- glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h.orig 2000-01-20 17:40:19.000000000 -0800
1.18 -+++ glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h 2004-03-04 15:56:43.000000000 -0800
1.19 -@@ -138,7 +138,7 @@
1.20 - /* Create a thread with given attributes ATTR (or default attributes
1.21 - if ATTR is NULL), and call function START_ROUTINE with given
1.22 - arguments ARG. */
1.23 --extern int pthread_create __P ((pthread_t *__thread,
1.24 -+extern int pthread_create __P ((pthread_t *__threadp,
1.25 - __const pthread_attr_t *__attr,
1.26 - void *(*__start_routine) (void *),
1.27 - void *__arg));
1.28 -@@ -459,7 +459,7 @@
1.29 - extern int pthread_setcanceltype __P ((int __type, int *__oldtype));
1.30 -
1.31 - /* Cancel THREAD immediately or at the next possibility. */
1.32 --extern int pthread_cancel __P ((pthread_t __thread));
1.33 -+extern int pthread_cancel __P ((pthread_t __cancelthread));
1.34 -
1.35 - /* Test for pending cancellation for the current thread and terminate
1.36 - the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
2.1 --- a/patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread2.patch Wed Aug 15 16:18:35 2007 +0000
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,18 +0,0 @@
2.4 -http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h.diff?r1=1.5&r2=1.6&cvsroot=glibc
2.5 -
2.6 -Fixes
2.7 -
2.8 -../linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h:35: error: storage class specified for parameter `type name'
2.9 -
2.10 -Rediffed to match glibc-2.1.3
2.11 -
2.12 ---- glibc-2.1.3/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h.orig 1998-09-12 14:33:14.000000000 -0700
2.13 -+++ glibc-2.1.3/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2004-03-04 15:50:30.000000000 -0800
2.14 -@@ -32,6 +32,6 @@
2.15 - __sigset_t *__oldmask));
2.16 -
2.17 - /* Send signal SIGNO to the given thread. */
2.18 --extern int pthread_kill __P ((pthread_t __thread, int __signo));
2.19 -+extern int pthread_kill __P ((pthread_t __threadid, int __signo));
2.20 -
2.21 - #endif /* bits/sigthread.h */
3.1 --- a/patches/glibc/linuxthreads-2.1.3/rh62-05-glibc-2.1.3-pthread.patch Wed Aug 15 16:18:35 2007 +0000
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,16 +0,0 @@
3.4 -2000-08-03 Ulrich Drepper <drepper@redhat.com>
3.5 -
3.6 - * pthread.c (__pthread_set_own_extricate_if): Remove locking.
3.7 -
3.8 ---- glibc-2.1.3/linuxthreads/pthread.c.jj Wed Mar 22 22:26:01 2000
3.9 -+++ glibc-2.1.3/linuxthreads/pthread.c Fri Aug 25 09:37:26 2000
3.10 -@@ -775,9 +775,7 @@ weak_alias (__pthread_getconcurrency, pt
3.11 -
3.12 - void __pthread_set_own_extricate_if(pthread_descr self, pthread_extricate_if *peif)
3.13 - {
3.14 -- __pthread_lock(self->p_lock, self);
3.15 - THREAD_SETMEM(self, p_extricate, peif);
3.16 -- __pthread_unlock(self->p_lock);
3.17 - }
3.18 -
3.19 - /* Primitives for controlling thread execution */
4.1 --- a/patches/glibc/linuxthreads-2.1.3/rh62-99-glibc-2.1.3-allow-gcc-3.4-td.patch Wed Aug 15 16:18:35 2007 +0000
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,808 +0,0 @@
4.4 -Fixes following error building glibc-2.2.5 with gcc-3.4:
4.5 -td_init.c: In function `td_init':
4.6 -td_init.c:30: error: parse error before string constant
4.7 -td_init.c:30: error: parse error before string constant
4.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
4.9 -
4.10 -# Retrieved by diffing a +-1 day rng around the time mentioned
4.11 -# in http://sources.redhat.com/ml/glibc-cvs/2001-q4/msg00654.html
4.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"
4.13 -# then fixing paths.
4.14 -
4.15 -# And then removing hunks that don't apply to rh6.2's glibc-2.1.3
4.16 -# (thankfully, all were comments)
4.17 -# and rediffing one hunk for glibc-2.1.3
4.18 -
4.19 -Index: td_init.c
4.20 -===================================================================
4.21 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_init.c,v
4.22 -retrieving revision 1.3
4.23 -retrieving revision 1.4
4.24 -diff -u -r1.3 -r1.4
4.25 ---- libc/linuxthreads_db/td_init.c 6 Jul 2001 05:27:23 -0000 1.3
4.26 -+++ libc/linuxthreads_db/td_init.c 28 Dec 2001 16:41:29 -0000 1.4
4.27 -@@ -1,5 +1,5 @@
4.28 - /* Initialization function of thread debugger support library.
4.29 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.30 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.31 - This file is part of the GNU C Library.
4.32 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.33 -
4.34 -@@ -27,6 +27,6 @@
4.35 - td_init (void)
4.36 - {
4.37 - /* XXX We have to figure out what has to be done. */
4.38 -- LOG (__FUNCTION__);
4.39 -+ LOG ("td_init");
4.40 - return TD_OK;
4.41 - }
4.42 -Index: td_log.c
4.43 -===================================================================
4.44 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_log.c,v
4.45 -retrieving revision 1.2
4.46 -retrieving revision 1.3
4.47 -diff -u -r1.2 -r1.3
4.48 ---- libc/linuxthreads_db/td_log.c 6 Jul 2001 05:27:23 -0000 1.2
4.49 -+++ libc/linuxthreads_db/td_log.c 28 Dec 2001 16:41:29 -0000 1.3
4.50 -@@ -1,5 +1,5 @@
4.51 - /* Noop, left for historical reasons.
4.52 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.53 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.54 - This file is part of the GNU C Library.
4.55 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.56 -
4.57 -@@ -25,8 +25,8 @@
4.58 - td_log (void)
4.59 - {
4.60 - /* This interface is deprecated in the Sun interface. We provide it
4.61 -- for compatibility but don't do anyhting ourself. We might in
4.62 -+ for compatibility but don't do anything ourself. We might in
4.63 - future do some logging if this seems reasonable. */
4.64 -- LOG (__FUNCTION__);
4.65 -+ LOG ("td_log");
4.66 - return TD_OK;
4.67 - }
4.68 -Index: td_ta_clear_event.c
4.69 -===================================================================
4.70 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_clear_event.c,v
4.71 -retrieving revision 1.3
4.72 -retrieving revision 1.4
4.73 -diff -u -r1.3 -r1.4
4.74 ---- libc/linuxthreads_db/td_ta_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
4.75 -+++ libc/linuxthreads_db/td_ta_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
4.76 -@@ -1,5 +1,5 @@
4.77 - /* Globally disable events.
4.78 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.79 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.80 - This file is part of the GNU C Library.
4.81 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.82 -
4.83 -@@ -29,7 +29,7 @@
4.84 - td_thr_events_t old_event;
4.85 - int i;
4.86 -
4.87 -- LOG (__FUNCTION__);
4.88 -+ LOG ("td_ta_clear_event");
4.89 -
4.90 - /* Test whether the TA parameter is ok. */
4.91 - if (! ta_ok (ta))
4.92 -Index: td_ta_delete.c
4.93 -===================================================================
4.94 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_delete.c,v
4.95 -retrieving revision 1.3
4.96 -retrieving revision 1.4
4.97 -diff -u -r1.3 -r1.4
4.98 ---- libc/linuxthreads_db/td_ta_delete.c 6 Jul 2001 05:27:23 -0000 1.3
4.99 -+++ libc/linuxthreads_db/td_ta_delete.c 28 Dec 2001 16:41:29 -0000 1.4
4.100 -@@ -1,5 +1,5 @@
4.101 - /* Detach to target process.
4.102 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.103 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.104 - This file is part of the GNU C Library.
4.105 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.106 -
4.107 -@@ -26,7 +26,7 @@
4.108 - td_err_e
4.109 - td_ta_delete (td_thragent_t *ta)
4.110 - {
4.111 -- LOG (__FUNCTION__);
4.112 -+ LOG ("td_ta_delete");
4.113 -
4.114 - /* Safety check. */
4.115 - if (ta == NULL || __td_agent_list == NULL)
4.116 -Index: td_ta_enable_stats.c
4.117 -===================================================================
4.118 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_enable_stats.c,v
4.119 -retrieving revision 1.3
4.120 -retrieving revision 1.4
4.121 -diff -u -r1.3 -r1.4
4.122 ---- libc/linuxthreads_db/td_ta_enable_stats.c 6 Jul 2001 05:27:23 -0000 1.3
4.123 -+++ libc/linuxthreads_db/td_ta_enable_stats.c 28 Dec 2001 16:41:29 -0000 1.4
4.124 -@@ -1,5 +1,5 @@
4.125 - /* Enable collection of statistics for process.
4.126 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.127 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.128 - This file is part of the GNU C Library.
4.129 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.130 -
4.131 -@@ -25,7 +25,7 @@
4.132 - td_ta_enable_stats (const td_thragent_t *ta, int enable)
4.133 - {
4.134 - /* XXX We have to figure out what has to be done. */
4.135 -- LOG (__FUNCTION__);
4.136 -+ LOG ("td_ta_enable_stats");
4.137 -
4.138 - /* Test whether the TA parameter is ok. */
4.139 - if (! ta_ok (ta))
4.140 -Index: td_ta_event_addr.c
4.141 -===================================================================
4.142 ---- glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c~ Tue Nov 9 21:05:07 1999
4.143 -+++ glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c Sun Apr 11 22:23:28 2004
4.144 -@@ -29,7 +29,7 @@
4.145 - td_err_e res = TD_NOEVENT;
4.146 - const char *symbol = NULL;
4.147 -
4.148 -- LOG (__FUNCTION__);
4.149 -+ LOG ("td_ta_event_addr");
4.150 -
4.151 - /* Test whether the TA parameter is ok. */
4.152 - if (! ta_ok (ta))
4.153 -Index: td_ta_event_getmsg.c
4.154 -===================================================================
4.155 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_getmsg.c,v
4.156 -retrieving revision 1.5
4.157 -retrieving revision 1.6
4.158 -diff -u -r1.5 -r1.6
4.159 ---- libc/linuxthreads_db/td_ta_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.5
4.160 -+++ libc/linuxthreads_db/td_ta_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.6
4.161 -@@ -1,5 +1,5 @@
4.162 - /* Retrieve event.
4.163 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.164 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.165 - This file is part of the GNU C Library.
4.166 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.167 -
4.168 -@@ -32,7 +32,7 @@
4.169 - td_eventbuf_t event;
4.170 - psaddr_t addr;
4.171 -
4.172 -- LOG (__FUNCTION__);
4.173 -+ LOG ("td_ta_event_getmsg");
4.174 -
4.175 - /* Test whether the TA parameter is ok. */
4.176 - if (! ta_ok (ta))
4.177 -Index: td_ta_get_nthreads.c
4.178 -===================================================================
4.179 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_nthreads.c,v
4.180 -retrieving revision 1.5
4.181 -retrieving revision 1.6
4.182 -diff -u -r1.5 -r1.6
4.183 ---- libc/linuxthreads_db/td_ta_get_nthreads.c 6 Jul 2001 05:27:23 -0000 1.5
4.184 -+++ libc/linuxthreads_db/td_ta_get_nthreads.c 28 Dec 2001 16:41:29 -0000 1.6
4.185 -@@ -25,7 +25,7 @@
4.186 - {
4.187 - psaddr_t addr;
4.188 -
4.189 -- LOG (__FUNCTION__);
4.190 -+ LOG ("td_ta_get_nthreads");
4.191 -
4.192 - /* Test whether the TA parameter is ok. */
4.193 - if (! ta_ok (ta))
4.194 -Index: td_ta_get_ph.c
4.195 -===================================================================
4.196 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_ph.c,v
4.197 -retrieving revision 1.3
4.198 -retrieving revision 1.4
4.199 -diff -u -r1.3 -r1.4
4.200 ---- libc/linuxthreads_db/td_ta_get_ph.c 6 Jul 2001 05:27:23 -0000 1.3
4.201 -+++ libc/linuxthreads_db/td_ta_get_ph.c 28 Dec 2001 16:41:29 -0000 1.4
4.202 -@@ -1,5 +1,5 @@
4.203 - /* Get external process handle.
4.204 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.205 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.206 - This file is part of the GNU C Library.
4.207 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.208 -
4.209 -@@ -24,7 +24,7 @@
4.210 - td_err_e
4.211 - td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
4.212 - {
4.213 -- LOG (__FUNCTION__);
4.214 -+ LOG ("td_ta_get_ph");
4.215 -
4.216 - /* Test whether the TA parameter is ok. */
4.217 - if (! ta_ok (ta))
4.218 -Index: td_ta_get_stats.c
4.219 -===================================================================
4.220 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_stats.c,v
4.221 -retrieving revision 1.3
4.222 -retrieving revision 1.4
4.223 -diff -u -r1.3 -r1.4
4.224 ---- libc/linuxthreads_db/td_ta_get_stats.c 6 Jul 2001 05:27:23 -0000 1.3
4.225 -+++ libc/linuxthreads_db/td_ta_get_stats.c 28 Dec 2001 16:41:29 -0000 1.4
4.226 -@@ -1,5 +1,5 @@
4.227 - /* Retrieve statistics for process.
4.228 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.229 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.230 - This file is part of the GNU C Library.
4.231 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.232 -
4.233 -@@ -25,7 +25,7 @@
4.234 - td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
4.235 - {
4.236 - /* XXX We have to figure out what has to be done. */
4.237 -- LOG (__FUNCTION__);
4.238 -+ LOG ("td_ta_get_stats");
4.239 -
4.240 - /* Test whether the TA parameter is ok. */
4.241 - if (! ta_ok (ta))
4.242 -Index: td_ta_map_id2thr.c
4.243 -===================================================================
4.244 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_id2thr.c,v
4.245 -retrieving revision 1.4
4.246 -retrieving revision 1.5
4.247 -diff -u -r1.4 -r1.5
4.248 ---- libc/linuxthreads_db/td_ta_map_id2thr.c 6 Jul 2001 05:27:23 -0000 1.4
4.249 -+++ libc/linuxthreads_db/td_ta_map_id2thr.c 28 Dec 2001 16:41:29 -0000 1.5
4.250 -@@ -28,7 +28,7 @@
4.251 - struct _pthread_descr_struct pds;
4.252 - int pthread_threads_max;
4.253 -
4.254 -- LOG (__FUNCTION__);
4.255 -+ LOG ("td_ta_map_id2thr");
4.256 -
4.257 - /* Test whether the TA parameter is ok. */
4.258 - if (! ta_ok (ta))
4.259 -Index: td_ta_map_lwp2thr.c
4.260 -===================================================================
4.261 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_lwp2thr.c,v
4.262 -retrieving revision 1.5
4.263 -retrieving revision 1.6
4.264 -diff -u -r1.5 -r1.6
4.265 ---- libc/linuxthreads_db/td_ta_map_lwp2thr.c 6 Jul 2001 05:27:23 -0000 1.5
4.266 -+++ libc/linuxthreads_db/td_ta_map_lwp2thr.c 28 Dec 2001 16:41:29 -0000 1.6
4.267 -@@ -1,5 +1,5 @@
4.268 - /* Which thread is running on an lwp?
4.269 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.270 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.271 - This file is part of the GNU C Library.
4.272 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.273 -
4.274 -@@ -34,7 +34,7 @@
4.275 - # define num 1
4.276 - #endif
4.277 -
4.278 -- LOG (__FUNCTION__);
4.279 -+ LOG ("td_ta_map_lwp2thr");
4.280 -
4.281 - /* Test whether the TA parameter is ok. */
4.282 - if (! ta_ok (ta))
4.283 -Index: td_ta_new.c
4.284 -===================================================================
4.285 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_new.c,v
4.286 -retrieving revision 1.10
4.287 -retrieving revision 1.11
4.288 -diff -u -r1.10 -r1.11
4.289 ---- libc/linuxthreads_db/td_ta_new.c 6 Jul 2001 05:27:23 -0000 1.10
4.290 -+++ libc/linuxthreads_db/td_ta_new.c 28 Dec 2001 16:41:29 -0000 1.11
4.291 -@@ -35,7 +35,7 @@
4.292 - psaddr_t addr;
4.293 - struct agent_list *elemp;
4.294 -
4.295 -- LOG (__FUNCTION__);
4.296 -+ LOG ("td_ta_new");
4.297 -
4.298 - /* Get the global event mask. This is one of the variables which
4.299 - are new in the thread library to enable debugging. If it is
4.300 -Index: td_ta_reset_stats.c
4.301 -===================================================================
4.302 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_reset_stats.c,v
4.303 -retrieving revision 1.3
4.304 -retrieving revision 1.4
4.305 -diff -u -r1.3 -r1.4
4.306 ---- libc/linuxthreads_db/td_ta_reset_stats.c 6 Jul 2001 05:27:23 -0000 1.3
4.307 -+++ libc/linuxthreads_db/td_ta_reset_stats.c 28 Dec 2001 16:41:29 -0000 1.4
4.308 -@@ -1,5 +1,5 @@
4.309 - /* Reset statistics.
4.310 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.311 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.312 - This file is part of the GNU C Library.
4.313 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.314 -
4.315 -@@ -25,7 +25,7 @@
4.316 - td_ta_reset_stats (const td_thragent_t *ta)
4.317 - {
4.318 - /* XXX We have to figure out what has to be done. */
4.319 -- LOG (__FUNCTION__);
4.320 -+ LOG ("td_ta_reset_stats");
4.321 -
4.322 - /* Test whether the TA parameter is ok. */
4.323 - if (! ta_ok (ta))
4.324 -Index: td_ta_set_event.c
4.325 -===================================================================
4.326 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_set_event.c,v
4.327 -retrieving revision 1.4
4.328 -retrieving revision 1.5
4.329 -diff -u -r1.4 -r1.5
4.330 ---- libc/linuxthreads_db/td_ta_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
4.331 -+++ libc/linuxthreads_db/td_ta_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
4.332 -@@ -1,5 +1,5 @@
4.333 - /* Globally enable events.
4.334 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.335 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.336 - This file is part of the GNU C Library.
4.337 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.338 -
4.339 -@@ -29,7 +29,7 @@
4.340 - td_thr_events_t old_event;
4.341 - int i;
4.342 -
4.343 -- LOG (__FUNCTION__);
4.344 -+ LOG ("td_ta_set_event");
4.345 -
4.346 - /* Test whether the TA parameter is ok. */
4.347 - if (! ta_ok (ta))
4.348 -Index: td_ta_setconcurrency.c
4.349 -===================================================================
4.350 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_setconcurrency.c,v
4.351 -retrieving revision 1.3
4.352 -retrieving revision 1.4
4.353 -diff -u -r1.3 -r1.4
4.354 ---- libc/linuxthreads_db/td_ta_setconcurrency.c 6 Jul 2001 05:27:23 -0000 1.3
4.355 -+++ libc/linuxthreads_db/td_ta_setconcurrency.c 28 Dec 2001 16:41:29 -0000 1.4
4.356 -@@ -1,5 +1,5 @@
4.357 - /* Set suggested concurrency level for process.
4.358 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.359 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.360 - This file is part of the GNU C Library.
4.361 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.362 -
4.363 -@@ -25,7 +25,7 @@
4.364 - td_ta_setconcurrency (const td_thragent_t *ta, int level)
4.365 - {
4.366 - /* This is something LinuxThreads does not support. */
4.367 -- LOG (__FUNCTION__);
4.368 -+ LOG ("td_ta_setconcurrency");
4.369 -
4.370 - /* Test whether the TA parameter is ok. */
4.371 - if (! ta_ok (ta))
4.372 -Index: td_ta_thr_iter.c
4.373 -===================================================================
4.374 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_thr_iter.c,v
4.375 -retrieving revision 1.11
4.376 -retrieving revision 1.12
4.377 -diff -u -r1.11 -r1.12
4.378 ---- libc/linuxthreads_db/td_ta_thr_iter.c 6 Jul 2001 05:27:23 -0000 1.11
4.379 -+++ libc/linuxthreads_db/td_ta_thr_iter.c 28 Dec 2001 16:41:29 -0000 1.12
4.380 -@@ -86,7 +86,7 @@
4.381 - # define num 1
4.382 - #endif
4.383 -
4.384 -- LOG (__FUNCTION__);
4.385 -+ LOG ("td_ta_thr_iter");
4.386 -
4.387 - /* Test whether the TA parameter is ok. */
4.388 - if (! ta_ok (ta))
4.389 -Index: td_ta_tsd_iter.c
4.390 -===================================================================
4.391 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_tsd_iter.c,v
4.392 -retrieving revision 1.4
4.393 -retrieving revision 1.5
4.394 -diff -u -r1.4 -r1.5
4.395 ---- libc/linuxthreads_db/td_ta_tsd_iter.c 6 Jul 2001 05:27:23 -0000 1.4
4.396 -+++ libc/linuxthreads_db/td_ta_tsd_iter.c 28 Dec 2001 16:41:29 -0000 1.5
4.397 -@@ -29,7 +29,7 @@
4.398 - int pthread_keys_max;
4.399 - int cnt;
4.400 -
4.401 -- LOG (__FUNCTION__);
4.402 -+ LOG ("td_ta_tsd_iter");
4.403 -
4.404 - /* Test whether the TA parameter is ok. */
4.405 - if (! ta_ok (ta))
4.406 -Index: td_thr_clear_event.c
4.407 -===================================================================
4.408 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_clear_event.c,v
4.409 -retrieving revision 1.3
4.410 -retrieving revision 1.4
4.411 -diff -u -r1.3 -r1.4
4.412 ---- libc/linuxthreads_db/td_thr_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
4.413 -+++ libc/linuxthreads_db/td_thr_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
4.414 -@@ -1,5 +1,5 @@
4.415 - /* Disable specific event for thread.
4.416 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.417 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.418 - This file is part of the GNU C Library.
4.419 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.420 -
4.421 -@@ -31,7 +31,7 @@
4.422 - td_thr_events_t old_event;
4.423 - int i;
4.424 -
4.425 -- LOG (__FUNCTION__);
4.426 -+ LOG ("td_thr_clear_event");
4.427 -
4.428 - /* Write the new value into the thread data structure. */
4.429 - if (ps_pdread (th->th_ta_p->ph,
4.430 -Index: td_thr_dbresume.c
4.431 -===================================================================
4.432 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbresume.c,v
4.433 -retrieving revision 1.2
4.434 -retrieving revision 1.3
4.435 -diff -u -r1.2 -r1.3
4.436 ---- libc/linuxthreads_db/td_thr_dbresume.c 6 Jul 2001 05:27:23 -0000 1.2
4.437 -+++ libc/linuxthreads_db/td_thr_dbresume.c 28 Dec 2001 16:41:29 -0000 1.3
4.438 -@@ -1,5 +1,5 @@
4.439 - /* Resume execution of given thread.
4.440 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.441 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.442 - This file is part of the GNU C Library.
4.443 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.444 -
4.445 -@@ -25,6 +25,6 @@
4.446 - td_thr_dbresume (const td_thrhandle_t *th)
4.447 - {
4.448 - /* XXX We have to figure out what has to be done. */
4.449 -- LOG (__FUNCTION__);
4.450 -+ LOG ("td_thr_dbresume");
4.451 - return TD_NOCAPAB;
4.452 - }
4.453 -Index: td_thr_dbsuspend.c
4.454 -===================================================================
4.455 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbsuspend.c,v
4.456 -retrieving revision 1.2
4.457 -retrieving revision 1.3
4.458 -diff -u -r1.2 -r1.3
4.459 ---- libc/linuxthreads_db/td_thr_dbsuspend.c 6 Jul 2001 05:27:23 -0000 1.2
4.460 -+++ libc/linuxthreads_db/td_thr_dbsuspend.c 28 Dec 2001 16:41:29 -0000 1.3
4.461 -@@ -1,5 +1,5 @@
4.462 - /* Suspend execution of given thread.
4.463 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.464 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.465 - This file is part of the GNU C Library.
4.466 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.467 -
4.468 -@@ -25,6 +25,6 @@
4.469 - td_thr_dbsuspend (const td_thrhandle_t *th)
4.470 - {
4.471 - /* XXX We have to figure out what has to be done. */
4.472 -- LOG (__FUNCTION__);
4.473 -+ LOG ("td_thr_dbsuspend");
4.474 - return TD_NOCAPAB;
4.475 - }
4.476 -Index: td_thr_event_enable.c
4.477 -===================================================================
4.478 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_enable.c,v
4.479 -retrieving revision 1.3
4.480 -retrieving revision 1.4
4.481 -diff -u -r1.3 -r1.4
4.482 ---- libc/linuxthreads_db/td_thr_event_enable.c 6 Jul 2001 05:27:23 -0000 1.3
4.483 -+++ libc/linuxthreads_db/td_thr_event_enable.c 28 Dec 2001 16:41:29 -0000 1.4
4.484 -@@ -1,5 +1,5 @@
4.485 - /* Enable event process-wide.
4.486 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.487 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.488 - This file is part of the GNU C Library.
4.489 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.490 -
4.491 -@@ -28,7 +28,7 @@
4.492 - const td_thrhandle_t *th;
4.493 - int onoff;
4.494 - {
4.495 -- LOG (__FUNCTION__);
4.496 -+ LOG ("td_thr_event_enable");
4.497 -
4.498 - /* Write the new value into the thread data structure. */
4.499 - if (ps_pdwrite (th->th_ta_p->ph,
4.500 -Index: td_thr_event_getmsg.c
4.501 -===================================================================
4.502 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_getmsg.c,v
4.503 -retrieving revision 1.3
4.504 -retrieving revision 1.4
4.505 -diff -u -r1.3 -r1.4
4.506 ---- libc/linuxthreads_db/td_thr_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.3
4.507 -+++ libc/linuxthreads_db/td_thr_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.4
4.508 -@@ -1,5 +1,5 @@
4.509 - /* Retrieve event.
4.510 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.511 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.512 - This file is part of the GNU C Library.
4.513 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.514 -
4.515 -@@ -29,7 +29,7 @@
4.516 - {
4.517 - td_eventbuf_t event;
4.518 -
4.519 -- LOG (__FUNCTION__);
4.520 -+ LOG ("td_thr_event_getmsg");
4.521 -
4.522 - /* Read the even structure from the target. */
4.523 - if (ps_pdread (th->th_ta_p->ph,
4.524 -Index: td_thr_get_info.c
4.525 -===================================================================
4.526 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_get_info.c,v
4.527 -retrieving revision 1.9
4.528 -retrieving revision 1.10
4.529 -diff -u -r1.9 -r1.10
4.530 ---- libc/linuxthreads_db/td_thr_get_info.c 6 Jul 2001 05:27:23 -0000 1.9
4.531 -+++ libc/linuxthreads_db/td_thr_get_info.c 28 Dec 2001 16:41:29 -0000 1.10
4.532 -@@ -29,7 +29,7 @@
4.533 - {
4.534 - struct _pthread_descr_struct pds;
4.535 -
4.536 -- LOG (__FUNCTION__);
4.537 -+ LOG ("td_thr_get_info");
4.538 -
4.539 - /* Get the thread descriptor. */
4.540 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
4.541 -Index: td_thr_getfpregs.c
4.542 -===================================================================
4.543 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getfpregs.c,v
4.544 -retrieving revision 1.4
4.545 -retrieving revision 1.5
4.546 -diff -u -r1.4 -r1.5
4.547 ---- libc/linuxthreads_db/td_thr_getfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
4.548 -+++ libc/linuxthreads_db/td_thr_getfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
4.549 -@@ -26,7 +26,7 @@
4.550 - {
4.551 - struct _pthread_descr_struct pds;
4.552 -
4.553 -- LOG (__FUNCTION__);
4.554 -+ LOG ("td_thr_getfpregs");
4.555 -
4.556 - /* We have to get the state and the PID for this thread. */
4.557 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
4.558 -Index: td_thr_getgregs.c
4.559 -===================================================================
4.560 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getgregs.c,v
4.561 -retrieving revision 1.8
4.562 -retrieving revision 1.9
4.563 -diff -u -r1.8 -r1.9
4.564 ---- libc/linuxthreads_db/td_thr_getgregs.c 6 Jul 2001 05:27:23 -0000 1.8
4.565 -+++ libc/linuxthreads_db/td_thr_getgregs.c 28 Dec 2001 16:41:29 -0000 1.9
4.566 -@@ -26,7 +26,7 @@
4.567 - {
4.568 - struct _pthread_descr_struct pds;
4.569 -
4.570 -- LOG (__FUNCTION__);
4.571 -+ LOG ("td_thr_getgregs");
4.572 -
4.573 - /* We have to get the state and the PID for this thread. */
4.574 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
4.575 -Index: td_thr_getxregs.c
4.576 -===================================================================
4.577 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregs.c,v
4.578 -retrieving revision 1.2
4.579 -retrieving revision 1.3
4.580 -diff -u -r1.2 -r1.3
4.581 ---- libc/linuxthreads_db/td_thr_getxregs.c 6 Jul 2001 05:27:23 -0000 1.2
4.582 -+++ libc/linuxthreads_db/td_thr_getxregs.c 28 Dec 2001 16:41:29 -0000 1.3
4.583 -@@ -1,5 +1,5 @@
4.584 - /* Get a thread's extra state register set.
4.585 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.586 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.587 - This file is part of the GNU C Library.
4.588 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.589 -
4.590 -@@ -25,6 +25,6 @@
4.591 - td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
4.592 - {
4.593 - /* XXX This might be platform specific. */
4.594 -- LOG (__FUNCTION__);
4.595 -+ LOG ("td_thr_getxregs");
4.596 - return TD_NOXREGS;
4.597 - }
4.598 -Index: td_thr_getxregsize.c
4.599 -===================================================================
4.600 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregsize.c,v
4.601 -retrieving revision 1.2
4.602 -retrieving revision 1.3
4.603 -diff -u -r1.2 -r1.3
4.604 ---- libc/linuxthreads_db/td_thr_getxregsize.c 6 Jul 2001 05:27:23 -0000 1.2
4.605 -+++ libc/linuxthreads_db/td_thr_getxregsize.c 28 Dec 2001 16:41:29 -0000 1.3
4.606 -@@ -1,5 +1,5 @@
4.607 - /* Get the size of the extra state register set for this architecture.
4.608 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.609 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.610 - This file is part of the GNU C Library.
4.611 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.612 -
4.613 -@@ -25,6 +25,6 @@
4.614 - td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
4.615 - {
4.616 - /* XXX This might be platform specific. */
4.617 -- LOG (__FUNCTION__);
4.618 -+ LOG ("td_thr_getxregsize");
4.619 - return TD_NOXREGS;
4.620 - }
4.621 -Index: td_thr_set_event.c
4.622 -===================================================================
4.623 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_set_event.c,v
4.624 -retrieving revision 1.4
4.625 -retrieving revision 1.5
4.626 -diff -u -r1.4 -r1.5
4.627 ---- libc/linuxthreads_db/td_thr_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
4.628 -+++ libc/linuxthreads_db/td_thr_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
4.629 -@@ -1,5 +1,5 @@
4.630 - /* Enable specific event for thread.
4.631 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.632 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.633 - This file is part of the GNU C Library.
4.634 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.635 -
4.636 -@@ -31,7 +31,7 @@
4.637 - td_thr_events_t old_event;
4.638 - int i;
4.639 -
4.640 -- LOG (__FUNCTION__);
4.641 -+ LOG ("td_thr_set_event");
4.642 -
4.643 - /* Write the new value into the thread data structure. */
4.644 - if (ps_pdread (th->th_ta_p->ph,
4.645 -Index: td_thr_setfpregs.c
4.646 -===================================================================
4.647 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setfpregs.c,v
4.648 -retrieving revision 1.4
4.649 -retrieving revision 1.5
4.650 -diff -u -r1.4 -r1.5
4.651 ---- libc/linuxthreads_db/td_thr_setfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
4.652 -+++ libc/linuxthreads_db/td_thr_setfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
4.653 -@@ -26,7 +26,7 @@
4.654 - {
4.655 - struct _pthread_descr_struct pds;
4.656 -
4.657 -- LOG (__FUNCTION__);
4.658 -+ LOG ("td_thr_setfpregs");
4.659 -
4.660 - /* We have to get the state and the PID for this thread. */
4.661 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
4.662 -Index: td_thr_setgregs.c
4.663 -===================================================================
4.664 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setgregs.c,v
4.665 -retrieving revision 1.6
4.666 -retrieving revision 1.7
4.667 -diff -u -r1.6 -r1.7
4.668 ---- libc/linuxthreads_db/td_thr_setgregs.c 6 Jul 2001 05:27:23 -0000 1.6
4.669 -+++ libc/linuxthreads_db/td_thr_setgregs.c 28 Dec 2001 16:41:29 -0000 1.7
4.670 -@@ -26,7 +26,7 @@
4.671 - {
4.672 - struct _pthread_descr_struct pds;
4.673 -
4.674 -- LOG (__FUNCTION__);
4.675 -+ LOG ("td_thr_setgregs");
4.676 -
4.677 - /* We have to get the state and the PID for this thread. */
4.678 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
4.679 -Index: td_thr_setprio.c
4.680 -===================================================================
4.681 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setprio.c,v
4.682 -retrieving revision 1.2
4.683 -retrieving revision 1.3
4.684 -diff -u -r1.2 -r1.3
4.685 ---- libc/linuxthreads_db/td_thr_setprio.c 6 Jul 2001 05:27:23 -0000 1.2
4.686 -+++ libc/linuxthreads_db/td_thr_setprio.c 28 Dec 2001 16:41:29 -0000 1.3
4.687 -@@ -1,5 +1,5 @@
4.688 - /* Set a thread's priority.
4.689 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.690 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.691 - This file is part of the GNU C Library.
4.692 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.693 -
4.694 -@@ -25,6 +25,6 @@
4.695 - td_thr_setprio (const td_thrhandle_t *th, int prio)
4.696 - {
4.697 - /* XXX We have to figure out what has to be done. */
4.698 -- LOG (__FUNCTION__);
4.699 -+ LOG ("td_thr_setprio");
4.700 - return TD_OK;
4.701 - }
4.702 -Index: td_thr_setsigpending.c
4.703 -===================================================================
4.704 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setsigpending.c,v
4.705 -retrieving revision 1.2
4.706 -retrieving revision 1.3
4.707 -diff -u -r1.2 -r1.3
4.708 ---- libc/linuxthreads_db/td_thr_setsigpending.c 6 Jul 2001 05:27:23 -0000 1.2
4.709 -+++ libc/linuxthreads_db/td_thr_setsigpending.c 28 Dec 2001 16:41:29 -0000 1.3
4.710 -@@ -1,5 +1,5 @@
4.711 - /* Raise a signal for a thread.
4.712 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.713 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.714 - This file is part of the GNU C Library.
4.715 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.716 -
4.717 -@@ -26,6 +26,6 @@
4.718 - const sigset_t *ss)
4.719 - {
4.720 - /* XXX We have to figure out what has to be done. */
4.721 -- LOG (__FUNCTION__);
4.722 -+ LOG ("td_thr_setsigpending");
4.723 - return TD_OK;
4.724 - }
4.725 -Index: td_thr_setxregs.c
4.726 -===================================================================
4.727 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setxregs.c,v
4.728 -retrieving revision 1.2
4.729 -retrieving revision 1.3
4.730 -diff -u -r1.2 -r1.3
4.731 ---- libc/linuxthreads_db/td_thr_setxregs.c 6 Jul 2001 05:27:23 -0000 1.2
4.732 -+++ libc/linuxthreads_db/td_thr_setxregs.c 28 Dec 2001 16:41:29 -0000 1.3
4.733 -@@ -1,5 +1,5 @@
4.734 - /* Set a thread's extra state register set.
4.735 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.736 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.737 - This file is part of the GNU C Library.
4.738 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.739 -
4.740 -@@ -25,6 +25,6 @@
4.741 - td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
4.742 - {
4.743 - /* XXX This might have to be platform specific. */
4.744 -- LOG (__FUNCTION__);
4.745 -+ LOG ("td_thr_setxregs");
4.746 - return TD_NOXREGS;
4.747 - }
4.748 -Index: td_thr_sigsetmask.c
4.749 -===================================================================
4.750 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_sigsetmask.c,v
4.751 -retrieving revision 1.2
4.752 -retrieving revision 1.3
4.753 -diff -u -r1.2 -r1.3
4.754 ---- libc/linuxthreads_db/td_thr_sigsetmask.c 6 Jul 2001 05:27:23 -0000 1.2
4.755 -+++ libc/linuxthreads_db/td_thr_sigsetmask.c 28 Dec 2001 16:41:29 -0000 1.3
4.756 -@@ -1,5 +1,5 @@
4.757 - /* Set a thread's signal mask.
4.758 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.759 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.760 - This file is part of the GNU C Library.
4.761 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.762 -
4.763 -@@ -25,6 +25,6 @@
4.764 - td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
4.765 - {
4.766 - /* XXX We have to figure out what has to be done. */
4.767 -- LOG (__FUNCTION__);
4.768 -+ LOG ("td_thr_sigsetmask");
4.769 - return TD_OK;
4.770 - }
4.771 -Index: td_thr_tsd.c
4.772 -===================================================================
4.773 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_tsd.c,v
4.774 -retrieving revision 1.2
4.775 -retrieving revision 1.3
4.776 -diff -u -r1.2 -r1.3
4.777 ---- libc/linuxthreads_db/td_thr_tsd.c 6 Jul 2001 05:27:23 -0000 1.2
4.778 -+++ libc/linuxthreads_db/td_thr_tsd.c 28 Dec 2001 16:41:29 -0000 1.3
4.779 -@@ -1,5 +1,5 @@
4.780 - /* Get a thread-specific data pointer for a thread.
4.781 -- Copyright (C) 1999 Free Software Foundation, Inc.
4.782 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
4.783 - This file is part of the GNU C Library.
4.784 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
4.785 -
4.786 -@@ -33,7 +33,7 @@
4.787 - unsigned int idx2nd;
4.788 - void *p;
4.789 -
4.790 -- LOG (__FUNCTION__);
4.791 -+ LOG ("td_thr_tsd");
4.792 -
4.793 - /* Get the thread descriptor. */
4.794 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
4.795 -Index: td_thr_validate.c
4.796 -===================================================================
4.797 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_validate.c,v
4.798 -retrieving revision 1.4
4.799 -retrieving revision 1.5
4.800 -diff -u -r1.4 -r1.5
4.801 ---- libc/linuxthreads_db/td_thr_validate.c 6 Jul 2001 05:27:23 -0000 1.4
4.802 -+++ libc/linuxthreads_db/td_thr_validate.c 28 Dec 2001 16:41:29 -0000 1.5
4.803 -@@ -28,7 +28,7 @@
4.804 - int pthread_threads_max = th->th_ta_p->pthread_threads_max;
4.805 - int cnt;
4.806 -
4.807 -- LOG (__FUNCTION__);
4.808 -+ LOG ("td_thr_validate");
4.809 -
4.810 - /* Now get all descriptors, one after the other. */
4.811 - for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)
5.1 --- a/patches/glibc/linuxthreads-2.2.2/glibc-linuxthreads-2.2.2-allow-gcc3.patch Wed Aug 15 16:18:35 2007 +0000
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,497 +0,0 @@
5.4 -Fixes
5.5 -td_init.c:30: error: parse error before string constant
5.6 -td_init.c:30: error: parse error before string constant
5.7 -
5.8 -From http://sources.redhat.com/ml/crossgcc/2005-01/msg00106.html :
5.9 ----
5.10 -Date: Mon, 31 Jan 2005 10:27:32 -0800
5.11 -Message-ID: <BF124E1E7928E546B5705D93C699ABDC0C7E99@glimmer.glimmerglassnet.com>
5.12 -From: "Vince Chen" <chen at glimmerglass dot com>
5.13 -To: <crossgcc at sources dot redhat dot com>
5.14 -
5.15 -I needed to build glibc-2.2.2 using gcc-3.x to support
5.16 -some of our older redhat machines.
5.17 -
5.18 -This file patches glibc-linuxthreads-2.2.2.
5.19 -
5.20 -When using crosstool, I placed it in:
5.21 -
5.22 - patches/glibc-linuxthreads-2.2.2/linuxthreads-gcc3.patch
5.23 -
5.24 -(you also need the glibc-gcc3.patch)
5.25 -
5.26 --vince
5.27 ----
5.28 -[removed parts already in threadparam.patch]
5.29 -
5.30 -===================================================================
5.31 ---- glibc-2.2.2/linuxthreads_db.orig/td_init.c 1999-11-22 12:52:34.000000000 -0800
5.32 -+++ glibc-2.2.2/linuxthreads_db/td_init.c 2005-01-27 19:05:36.000000000 -0800
5.33 -@@ -27,6 +27,6 @@
5.34 - td_init (void)
5.35 - {
5.36 - /* XXX We have to figure out what has to be done. */
5.37 -- LOG (__FUNCTION__);
5.38 -+ LOG ("td_init");
5.39 - return TD_OK;
5.40 - }
5.41 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_log.c glibc-2.2.2/linuxthreads_db/td_log.c
5.42 ---- glibc-2.2.2/linuxthreads_db.orig/td_log.c 1999-10-07 23:31:32.000000000 -0700
5.43 -+++ glibc-2.2.2/linuxthreads_db/td_log.c 2005-01-27 19:05:29.000000000 -0800
5.44 -@@ -27,6 +27,6 @@
5.45 - /* This interface is deprecated in the Sun interface. We provide it
5.46 - for compatibility but don't do anyhting ourself. We might in
5.47 - future do some logging if this seems reasonable. */
5.48 -- LOG (__FUNCTION__);
5.49 -+ LOG ("td_log");
5.50 - return TD_OK;
5.51 - }
5.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
5.53 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_clear_event.c 1999-11-08 14:52:10.000000000 -0800
5.54 -+++ glibc-2.2.2/linuxthreads_db/td_ta_clear_event.c 2005-01-27 19:05:20.000000000 -0800
5.55 -@@ -22,14 +22,12 @@
5.56 -
5.57 -
5.58 - td_err_e
5.59 --td_ta_clear_event (ta, event)
5.60 -- const td_thragent_t *ta;
5.61 -- td_thr_events_t *event;
5.62 -+td_ta_clear_event (const td_thragent_t *ta, td_thr_events_t *event)
5.63 - {
5.64 - td_thr_events_t old_event;
5.65 - int i;
5.66 -
5.67 -- LOG (__FUNCTION__);
5.68 -+ LOG ("td_ta_clear_event");
5.69 -
5.70 - /* Test whether the TA parameter is ok. */
5.71 - if (! ta_ok (ta))
5.72 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c glibc-2.2.2/linuxthreads_db/td_ta_delete.c
5.73 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c 1999-11-08 14:52:10.000000000 -0800
5.74 -+++ glibc-2.2.2/linuxthreads_db/td_ta_delete.c 2005-01-27 19:04:59.000000000 -0800
5.75 -@@ -26,7 +26,7 @@
5.76 - td_err_e
5.77 - td_ta_delete (td_thragent_t *ta)
5.78 - {
5.79 -- LOG (__FUNCTION__);
5.80 -+ LOG ("td_ta_delete");
5.81 -
5.82 - /* Safety check. */
5.83 - if (ta == NULL || __td_agent_list == NULL)
5.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
5.85 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_enable_stats.c 1999-11-08 14:52:10.000000000 -0800
5.86 -+++ glibc-2.2.2/linuxthreads_db/td_ta_enable_stats.c 2005-01-27 19:04:50.000000000 -0800
5.87 -@@ -25,7 +25,7 @@
5.88 - td_ta_enable_stats (const td_thragent_t *ta, int enable)
5.89 - {
5.90 - /* XXX We have to figure out what has to be done. */
5.91 -- LOG (__FUNCTION__);
5.92 -+ LOG ("td_ta_enable_stats");
5.93 -
5.94 - /* Test whether the TA parameter is ok. */
5.95 - if (! ta_ok (ta))
5.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
5.97 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_addr.c 1999-11-08 14:52:10.000000000 -0800
5.98 -+++ glibc-2.2.2/linuxthreads_db/td_ta_event_addr.c 2005-01-27 19:04:41.000000000 -0800
5.99 -@@ -29,7 +29,7 @@
5.100 - td_err_e res = TD_NOEVENT;
5.101 - const char *symbol = NULL;
5.102 -
5.103 -- LOG (__FUNCTION__);
5.104 -+ LOG ("td_ta_event_addr");
5.105 -
5.106 - /* Test whether the TA parameter is ok. */
5.107 - if (! ta_ok (ta))
5.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
5.109 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_getmsg.c 1999-11-08 14:52:10.000000000 -0800
5.110 -+++ glibc-2.2.2/linuxthreads_db/td_ta_event_getmsg.c 2005-01-27 19:04:33.000000000 -0800
5.111 -@@ -32,7 +32,7 @@
5.112 - td_eventbuf_t event;
5.113 - psaddr_t addr;
5.114 -
5.115 -- LOG (__FUNCTION__);
5.116 -+ LOG ("td_ta_event_getmsg");
5.117 -
5.118 - /* Test whether the TA parameter is ok. */
5.119 - if (! ta_ok (ta))
5.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
5.121 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_nthreads.c 1999-11-08 14:52:10.000000000 -0800
5.122 -+++ glibc-2.2.2/linuxthreads_db/td_ta_get_nthreads.c 2005-01-27 19:04:25.000000000 -0800
5.123 -@@ -26,7 +26,7 @@
5.124 - {
5.125 - psaddr_t addr;
5.126 -
5.127 -- LOG (__FUNCTION__);
5.128 -+ LOG ("td_ta_get_nthreads");
5.129 -
5.130 - /* Test whether the TA parameter is ok. */
5.131 - if (! ta_ok (ta))
5.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
5.133 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_ph.c 1999-11-08 14:52:10.000000000 -0800
5.134 -+++ glibc-2.2.2/linuxthreads_db/td_ta_get_ph.c 2005-01-27 19:04:17.000000000 -0800
5.135 -@@ -24,7 +24,7 @@
5.136 - td_err_e
5.137 - td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
5.138 - {
5.139 -- LOG (__FUNCTION__);
5.140 -+ LOG ("td_ta_get_ph");
5.141 -
5.142 - /* Test whether the TA parameter is ok. */
5.143 - if (! ta_ok (ta))
5.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
5.145 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_stats.c 1999-11-08 14:52:10.000000000 -0800
5.146 -+++ glibc-2.2.2/linuxthreads_db/td_ta_get_stats.c 2005-01-27 19:04:06.000000000 -0800
5.147 -@@ -25,7 +25,7 @@
5.148 - td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
5.149 - {
5.150 - /* XXX We have to figure out what has to be done. */
5.151 -- LOG (__FUNCTION__);
5.152 -+ LOG ("td_ta_get_stats");
5.153 -
5.154 - /* Test whether the TA parameter is ok. */
5.155 - if (! ta_ok (ta))
5.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
5.157 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_id2thr.c 1999-11-08 14:52:10.000000000 -0800
5.158 -+++ glibc-2.2.2/linuxthreads_db/td_ta_map_id2thr.c 2005-01-27 19:03:54.000000000 -0800
5.159 -@@ -28,7 +28,7 @@
5.160 - struct _pthread_descr_struct pds;
5.161 - int pthread_threads_max;
5.162 -
5.163 -- LOG (__FUNCTION__);
5.164 -+ LOG ("td_ta_map_id2thr");
5.165 -
5.166 - /* Test whether the TA parameter is ok. */
5.167 - if (! ta_ok (ta))
5.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
5.169 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_lwp2thr.c 1999-11-22 18:25:26.000000000 -0800
5.170 -+++ glibc-2.2.2/linuxthreads_db/td_ta_map_lwp2thr.c 2005-01-27 19:03:46.000000000 -0800
5.171 -@@ -34,7 +34,7 @@
5.172 - # define num 1
5.173 - #endif
5.174 -
5.175 -- LOG (__FUNCTION__);
5.176 -+ LOG ("td_ta_map_lwp2thr");
5.177 -
5.178 - /* Test whether the TA parameter is ok. */
5.179 - if (! ta_ok (ta))
5.180 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c glibc-2.2.2/linuxthreads_db/td_ta_new.c
5.181 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c 1999-11-08 14:52:10.000000000 -0800
5.182 -+++ glibc-2.2.2/linuxthreads_db/td_ta_new.c 2005-01-27 19:03:36.000000000 -0800
5.183 -@@ -36,7 +36,7 @@
5.184 - psaddr_t addr;
5.185 - struct agent_list *elemp;
5.186 -
5.187 -- LOG (__FUNCTION__);
5.188 -+ LOG ("td_ta_new");
5.189 -
5.190 - /* Get the global event mask. This is one of the variables which
5.191 - are new in the thread library to enable debugging. If it is
5.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
5.193 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_reset_stats.c 1999-11-08 14:52:10.000000000 -0800
5.194 -+++ glibc-2.2.2/linuxthreads_db/td_ta_reset_stats.c 2005-01-27 19:03:27.000000000 -0800
5.195 -@@ -25,7 +25,7 @@
5.196 - td_ta_reset_stats (const td_thragent_t *ta)
5.197 - {
5.198 - /* XXX We have to figure out what has to be done. */
5.199 -- LOG (__FUNCTION__);
5.200 -+ LOG ("td_ta_reset_stats");
5.201 -
5.202 - /* Test whether the TA parameter is ok. */
5.203 - if (! ta_ok (ta))
5.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
5.205 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_set_event.c 1999-11-08 14:52:10.000000000 -0800
5.206 -+++ glibc-2.2.2/linuxthreads_db/td_ta_set_event.c 2005-01-27 19:03:15.000000000 -0800
5.207 -@@ -22,14 +22,12 @@
5.208 -
5.209 -
5.210 - td_err_e
5.211 --td_ta_set_event (ta, event)
5.212 -- const td_thragent_t *ta;
5.213 -- td_thr_events_t *event;
5.214 -+td_ta_set_event (const td_thragent_t *ta, td_thr_events_t *event)
5.215 - {
5.216 - td_thr_events_t old_event;
5.217 - int i;
5.218 -
5.219 -- LOG (__FUNCTION__);
5.220 -+ LOG ("td_ta_set_event");
5.221 -
5.222 - /* Test whether the TA parameter is ok. */
5.223 - if (! ta_ok (ta))
5.224 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c
5.225 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c 1999-11-08 14:52:10.000000000 -0800
5.226 -+++ glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c 2005-01-27 19:02:48.000000000 -0800
5.227 -@@ -25,7 +25,7 @@
5.228 - td_ta_setconcurrency (const td_thragent_t *ta, int level)
5.229 - {
5.230 - /* This is something LinuxThreads does not support. */
5.231 -- LOG (__FUNCTION__);
5.232 -+ LOG ("td_ta_setconcurrency");
5.233 -
5.234 - /* Test whether the TA parameter is ok. */
5.235 - if (! ta_ok (ta))
5.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
5.237 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_thr_iter.c 2000-02-28 12:34:06.000000000 -0800
5.238 -+++ glibc-2.2.2/linuxthreads_db/td_ta_thr_iter.c 2005-01-27 19:02:39.000000000 -0800
5.239 -@@ -86,7 +86,7 @@
5.240 - # define num 1
5.241 - #endif
5.242 -
5.243 -- LOG (__FUNCTION__);
5.244 -+ LOG ("td_ta_thr_iter");
5.245 -
5.246 - /* Test whether the TA parameter is ok. */
5.247 - if (! ta_ok (ta))
5.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
5.249 ---- glibc-2.2.2/linuxthreads_db.orig/td_ta_tsd_iter.c 2000-02-28 12:34:06.000000000 -0800
5.250 -+++ glibc-2.2.2/linuxthreads_db/td_ta_tsd_iter.c 2005-01-27 19:02:29.000000000 -0800
5.251 -@@ -29,7 +29,7 @@
5.252 - int pthread_keys_max;
5.253 - int cnt;
5.254 -
5.255 -- LOG (__FUNCTION__);
5.256 -+ LOG ("td_ta_tsd_iter");
5.257 -
5.258 - /* Test whether the TA parameter is ok. */
5.259 - if (! ta_ok (ta))
5.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
5.261 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_clear_event.c 1999-11-03 10:37:18.000000000 -0800
5.262 -+++ glibc-2.2.2/linuxthreads_db/td_thr_clear_event.c 2005-01-27 19:02:19.000000000 -0800
5.263 -@@ -24,14 +24,12 @@
5.264 -
5.265 -
5.266 - td_err_e
5.267 --td_thr_clear_event (th, event)
5.268 -- const td_thrhandle_t *th;
5.269 -- td_thr_events_t *event;
5.270 -+td_thr_clear_event (const td_thrhandle_t *th, td_thr_events_t *event)
5.271 - {
5.272 - td_thr_events_t old_event;
5.273 - int i;
5.274 -
5.275 -- LOG (__FUNCTION__);
5.276 -+ LOG ("td_thr_clear_event");
5.277 -
5.278 - /* Write the new value into the thread data structure. */
5.279 - if (ps_pdread (th->th_ta_p->ph,
5.280 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c
5.281 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c 1999-10-07 23:40:02.000000000 -0700
5.282 -+++ glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c 2005-01-27 19:01:54.000000000 -0800
5.283 -@@ -25,6 +25,6 @@
5.284 - td_thr_dbresume (const td_thrhandle_t *th)
5.285 - {
5.286 - /* XXX We have to figure out what has to be done. */
5.287 -- LOG (__FUNCTION__);
5.288 -+ LOG ("td_thr_dbresume");
5.289 - return TD_NOCAPAB;
5.290 - }
5.291 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c
5.292 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c 1999-10-07 23:40:33.000000000 -0700
5.293 -+++ glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c 2005-01-27 19:01:46.000000000 -0800
5.294 -@@ -25,6 +25,6 @@
5.295 - td_thr_dbsuspend (const td_thrhandle_t *th)
5.296 - {
5.297 - /* XXX We have to figure out what has to be done. */
5.298 -- LOG (__FUNCTION__);
5.299 -+ LOG ("td_thr_dbsuspend");
5.300 - return TD_NOCAPAB;
5.301 - }
5.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
5.303 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_enable.c 1999-11-02 16:06:10.000000000 -0800
5.304 -+++ glibc-2.2.2/linuxthreads_db/td_thr_event_enable.c 2005-01-27 19:01:35.000000000 -0800
5.305 -@@ -24,11 +24,9 @@
5.306 -
5.307 -
5.308 - td_err_e
5.309 --td_thr_event_enable (th, onoff)
5.310 -- const td_thrhandle_t *th;
5.311 -- int onoff;
5.312 -+td_thr_event_enable (const td_thrhandle_t *th, int onoff)
5.313 - {
5.314 -- LOG (__FUNCTION__);
5.315 -+ LOG ("td_thr_event_enable");
5.316 -
5.317 - /* Write the new value into the thread data structure. */
5.318 - if (ps_pdwrite (th->th_ta_p->ph,
5.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
5.320 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_getmsg.c 1999-11-02 16:06:10.000000000 -0800
5.321 -+++ glibc-2.2.2/linuxthreads_db/td_thr_event_getmsg.c 2005-01-27 19:01:11.000000000 -0800
5.322 -@@ -29,7 +29,7 @@
5.323 - {
5.324 - td_eventbuf_t event;
5.325 -
5.326 -- LOG (__FUNCTION__);
5.327 -+ LOG ("td_thr_event_getmsg");
5.328 -
5.329 - /* Read the even structure from the target. */
5.330 - if (ps_pdread (th->th_ta_p->ph,
5.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
5.332 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_get_info.c 2000-05-01 14:56:42.000000000 -0700
5.333 -+++ glibc-2.2.2/linuxthreads_db/td_thr_get_info.c 2005-01-27 19:00:59.000000000 -0800
5.334 -@@ -29,7 +29,7 @@
5.335 - {
5.336 - struct _pthread_descr_struct pds;
5.337 -
5.338 -- LOG (__FUNCTION__);
5.339 -+ LOG ("td_thr_get_info");
5.340 -
5.341 - /* Get the thread descriptor. */
5.342 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
5.343 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c
5.344 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c 1999-11-02 16:06:10.000000000 -0800
5.345 -+++ glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c 2005-01-27 19:00:49.000000000 -0800
5.346 -@@ -26,7 +26,7 @@
5.347 - {
5.348 - struct _pthread_descr_struct pds;
5.349 -
5.350 -- LOG (__FUNCTION__);
5.351 -+ LOG ("td_thr_getfpregs");
5.352 -
5.353 - /* We have to get the state and the PID for this thread. */
5.354 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
5.355 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c
5.356 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c 2000-02-11 15:48:51.000000000 -0800
5.357 -+++ glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c 2005-01-27 19:00:37.000000000 -0800
5.358 -@@ -26,7 +26,7 @@
5.359 - {
5.360 - struct _pthread_descr_struct pds;
5.361 -
5.362 -- LOG (__FUNCTION__);
5.363 -+ LOG ("td_thr_getgregs");
5.364 -
5.365 - /* We have to get the state and the PID for this thread. */
5.366 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
5.367 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c
5.368 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c 1999-10-07 23:46:09.000000000 -0700
5.369 -+++ glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c 2005-01-27 19:00:26.000000000 -0800
5.370 -@@ -25,6 +25,6 @@
5.371 - td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
5.372 - {
5.373 - /* XXX This might be platform specific. */
5.374 -- LOG (__FUNCTION__);
5.375 -+ LOG ("td_thr_getxregs");
5.376 - return TD_NOXREGS;
5.377 - }
5.378 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c
5.379 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c 1999-10-07 23:46:33.000000000 -0700
5.380 -+++ glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c 2005-01-27 19:00:16.000000000 -0800
5.381 -@@ -25,6 +25,6 @@
5.382 - td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
5.383 - {
5.384 - /* XXX This might be platform specific. */
5.385 -- LOG (__FUNCTION__);
5.386 -+ LOG ("td_thr_getxregsize");
5.387 - return TD_NOXREGS;
5.388 - }
5.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
5.390 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_set_event.c 1999-11-03 10:37:18.000000000 -0800
5.391 -+++ glibc-2.2.2/linuxthreads_db/td_thr_set_event.c 2005-01-27 19:00:08.000000000 -0800
5.392 -@@ -24,14 +24,12 @@
5.393 -
5.394 -
5.395 - td_err_e
5.396 --td_thr_set_event (th, event)
5.397 -- const td_thrhandle_t *th;
5.398 -- td_thr_events_t *event;
5.399 -+td_thr_set_event (const td_thrhandle_t *th, td_thr_events_t *event)
5.400 - {
5.401 - td_thr_events_t old_event;
5.402 - int i;
5.403 -
5.404 -- LOG (__FUNCTION__);
5.405 -+ LOG ("td_thr_set_event");
5.406 -
5.407 - /* Write the new value into the thread data structure. */
5.408 - if (ps_pdread (th->th_ta_p->ph,
5.409 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c
5.410 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c 1999-11-02 16:06:10.000000000 -0800
5.411 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c 2005-01-27 18:59:06.000000000 -0800
5.412 -@@ -26,7 +26,7 @@
5.413 - {
5.414 - struct _pthread_descr_struct pds;
5.415 -
5.416 -- LOG (__FUNCTION__);
5.417 -+ LOG ("td_thr_setfpregs");
5.418 -
5.419 - /* We have to get the state and the PID for this thread. */
5.420 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
5.421 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c
5.422 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c 2000-02-11 15:48:51.000000000 -0800
5.423 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c 2005-01-27 18:58:57.000000000 -0800
5.424 -@@ -26,7 +26,7 @@
5.425 - {
5.426 - struct _pthread_descr_struct pds;
5.427 -
5.428 -- LOG (__FUNCTION__);
5.429 -+ LOG ("td_thr_setgregs");
5.430 -
5.431 - /* We have to get the state and the PID for this thread. */
5.432 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
5.433 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c glibc-2.2.2/linuxthreads_db/td_thr_setprio.c
5.434 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c 1999-10-07 23:49:11.000000000 -0700
5.435 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setprio.c 2005-01-27 18:58:46.000000000 -0800
5.436 -@@ -25,6 +25,6 @@
5.437 - td_thr_setprio (const td_thrhandle_t *th, int prio)
5.438 - {
5.439 - /* XXX We have to figure out what has to be done. */
5.440 -- LOG (__FUNCTION__);
5.441 -+ LOG ("td_thr_setprio");
5.442 - return TD_OK;
5.443 - }
5.444 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c
5.445 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c 1999-10-07 23:49:38.000000000 -0700
5.446 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c 2005-01-27 18:58:34.000000000 -0800
5.447 -@@ -26,6 +26,6 @@
5.448 - const sigset_t *ss)
5.449 - {
5.450 - /* XXX We have to figure out what has to be done. */
5.451 -- LOG (__FUNCTION__);
5.452 -+ LOG ("td_thr_setsigpending");
5.453 - return TD_OK;
5.454 - }
5.455 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c
5.456 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c 1999-10-07 23:48:20.000000000 -0700
5.457 -+++ glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c 2005-01-27 18:58:21.000000000 -0800
5.458 -@@ -25,6 +25,6 @@
5.459 - td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
5.460 - {
5.461 - /* XXX This might have to be platform specific. */
5.462 -- LOG (__FUNCTION__);
5.463 -+ LOG ("td_thr_setxregs");
5.464 - return TD_NOXREGS;
5.465 - }
5.466 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c
5.467 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c 1999-10-07 23:50:34.000000000 -0700
5.468 -+++ glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c 2005-01-27 18:57:58.000000000 -0800
5.469 -@@ -25,6 +25,6 @@
5.470 - td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
5.471 - {
5.472 - /* XXX We have to figure out what has to be done. */
5.473 -- LOG (__FUNCTION__);
5.474 -+ LOG ("td_thr_sigsetmask");
5.475 - return TD_OK;
5.476 - }
5.477 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c glibc-2.2.2/linuxthreads_db/td_thr_tsd.c
5.478 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c 1999-10-07 23:52:15.000000000 -0700
5.479 -+++ glibc-2.2.2/linuxthreads_db/td_thr_tsd.c 2005-01-27 18:58:09.000000000 -0800
5.480 -@@ -33,7 +33,7 @@
5.481 - unsigned int idx2nd;
5.482 - void *p;
5.483 -
5.484 -- LOG (__FUNCTION__);
5.485 -+ LOG ("td_thr_tsd");
5.486 -
5.487 - /* Get the thread descriptor. */
5.488 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
5.489 -diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c glibc-2.2.2/linuxthreads_db/td_thr_validate.c
5.490 ---- glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c 1999-10-14 17:24:20.000000000 -0700
5.491 -+++ glibc-2.2.2/linuxthreads_db/td_thr_validate.c 2005-01-27 18:57:41.000000000 -0800
5.492 -@@ -28,7 +28,7 @@
5.493 - int pthread_threads_max = th->th_ta_p->pthread_threads_max;
5.494 - int cnt;
5.495 -
5.496 -- LOG (__FUNCTION__);
5.497 -+ LOG ("td_thr_validate");
5.498 -
5.499 - /* Now get all descriptors, one after the other. */
5.500 - for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)
6.1 --- a/patches/glibc/linuxthreads-2.2.2/threadparam.patch Wed Aug 15 16:18:35 2007 +0000
6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
6.3 @@ -1,69 +0,0 @@
6.4 -2002-05-21 Ulrich Drepper <drepper@redhat.com>
6.5 -
6.6 - * sysdeps/pthread/pthread.h (pthread_create): Rename first parameter.
6.7 - (pthread_cancel): Likewise.
6.8 - * internals.h (__pthread_create_2_1): Likewise.
6.9 - * sysdeps/unix/sysv/linux/bits/sigthread.h (pthread_kill): Likewise.
6.10 -===================================================================
6.11 -RCS file: /cvs/glibc/libc/linuxthreads/internals.h,v
6.12 -retrieving revision 1.69.2.2
6.13 -retrieving revision 1.69.2.3
6.14 -diff -u -r1.69.2.2 -r1.69.2.3
6.15 ---- libc/linuxthreads/internals.h 2002/03/22 08:30:32 1.69.2.2
6.16 -+++ libc/linuxthreads/internals.h 2002/08/20 22:01:25 1.69.2.3
6.17 -@@ -554,7 +554,7 @@
6.18 - /* Prototypes for compatibility functions. */
6.19 - extern int __pthread_attr_init_2_1 (pthread_attr_t *__attr);
6.20 - extern int __pthread_attr_init_2_0 (pthread_attr_t *__attr);
6.21 --extern int __pthread_create_2_1 (pthread_t *__restrict __thread,
6.22 -+extern int __pthread_create_2_1 (pthread_t *__restrict __threadp,
6.23 - const pthread_attr_t *__attr,
6.24 - void *(*__start_routine) (void *),
6.25 - void *__restrict __arg);
6.26 -===================================================================
6.27 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/pthread/pthread.h,v
6.28 -retrieving revision 1.31
6.29 -retrieving revision 1.31.2.1
6.30 -diff -u -r1.31 -r1.31.2.1
6.31 ---- libc/linuxthreads/sysdeps/pthread/pthread.h 2001/03/15 21:12:31 1.31
6.32 -+++ libc/linuxthreads/sysdeps/pthread/pthread.h 2002/08/20 22:01:26 1.31.2.1
6.33 -@@ -160,7 +160,7 @@
6.34 - /* Create a thread with given attributes ATTR (or default attributes
6.35 - if ATTR is NULL), and call function START_ROUTINE with given
6.36 - arguments ARG. */
6.37 --extern int pthread_create (pthread_t *__restrict __thread,
6.38 -+extern int pthread_create (pthread_t *__restrict __threadp,
6.39 - __const pthread_attr_t *__restrict __attr,
6.40 - void *(*__start_routine) (void *),
6.41 - void *__restrict __arg) __THROW;
6.42 -@@ -588,7 +588,7 @@
6.43 - extern int pthread_setcanceltype (int __type, int *__oldtype) __THROW;
6.44 -
6.45 - /* Cancel THREAD immediately or at the next possibility. */
6.46 --extern int pthread_cancel (pthread_t __thread) __THROW;
6.47 -+extern int pthread_cancel (pthread_t __cancelthread) __THROW;
6.48 -
6.49 - /* Test for pending cancellation for the current thread and terminate
6.50 - the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
6.51 -===================================================================
6.52 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h,v
6.53 -retrieving revision 1.5
6.54 -retrieving revision 1.5.2.1
6.55 -diff -u -r1.5 -r1.5.2.1
6.56 ---- libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2000/08/21 06:48:03 1.5
6.57 -+++ libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2002/08/20 22:01:26 1.5.2.1
6.58 -@@ -1,5 +1,5 @@
6.59 - /* Signal handling function for threaded programs.
6.60 -- Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
6.61 -+ Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
6.62 - This file is part of the GNU C Library.
6.63 -
6.64 - The GNU C Library is free software; you can redistribute it and/or
6.65 -@@ -33,6 +33,6 @@
6.66 - __sigset_t *__restrict __oldmask)__THROW;
6.67 -
6.68 - /* Send signal SIGNO to the given thread. */
6.69 --extern int pthread_kill (pthread_t __thread, int __signo) __THROW;
6.70 -+extern int pthread_kill (pthread_t __threadid, int __signo) __THROW;
6.71 -
6.72 - #endif /* bits/sigthread.h */
7.1 --- a/patches/glibc/linuxthreads-2.2.5/glibc-2.2.5-allow-gcc-3.4-td.patch Wed Aug 15 16:18:35 2007 +0000
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,881 +0,0 @@
7.4 -Fixes following error building glibc-2.2.5 with gcc-3.4:
7.5 -td_init.c: In function `td_init':
7.6 -td_init.c:30: error: parse error before string constant
7.7 -td_init.c:30: error: parse error before string constant
7.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
7.9 -
7.10 -# Retrieved by diffing a +-1 day rng around the time mentioned
7.11 -# in http://sources.redhat.com/ml/glibc-cvs/2001-q4/msg00654.html
7.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"
7.13 -# then fixing paths.
7.14 -
7.15 -Index: ChangeLog
7.16 -===================================================================
7.17 -RCS file: /cvs/glibc/libc/linuxthreads_db/ChangeLog,v
7.18 -retrieving revision 1.41
7.19 -retrieving revision 1.42
7.20 -diff -u -r1.41 -r1.42
7.21 ---- libc/linuxthreads_db/ChangeLog 13 Apr 2001 00:09:54 -0000 1.41
7.22 -+++ libc/linuxthreads_db/ChangeLog 29 Dec 2001 00:59:58 -0000 1.42
7.23 -@@ -1,3 +1,43 @@
7.24 -+2001-12-28 Andreas Jaeger <aj@suse.de>
7.25 -+
7.26 -+ * td_init.c (td_init): Don't use __FUNCTION__ as literal.
7.27 -+ * td_log.c (td_log): Likewise.
7.28 -+ * td_ta_delete.c (td_ta_delete): Likewise.
7.29 -+ * td_ta_get_nthreads.c (td_ta_get_nthreads): Likewise.
7.30 -+ * td_ta_get_ph.c (td_ta_get_ph): Likewise.
7.31 -+ * td_ta_map_id2thr.c (td_ta_map_id2thr): Likewise.
7.32 -+ * td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Likewise.
7.33 -+ * td_ta_new.c (td_ta_new): Likewise.
7.34 -+ * td_ta_clear_event.c (td_ta_clear_event): Likewise.
7.35 -+ * td_ta_enable_stats.c (td_ta_enable_stats): Likewise.
7.36 -+ * td_ta_event_addr.c (td_ta_event_addr): Likewise.
7.37 -+ * td_ta_event_getmsg.c (td_ta_event_getmsg): Likewise.
7.38 -+ * td_ta_get_stats.c (td_ta_get_stats): Likewise.
7.39 -+ * td_ta_reset_stats.c (td_ta_reset_stats): Likewise.
7.40 -+ * td_ta_set_event.c (td_ta_set_event): Likewise.
7.41 -+ * td_ta_setconcurrency.c (td_ta_setconcurrency): Likewise.
7.42 -+ * td_ta_thr_iter.c (td_ta_thr_iter): Likewise.
7.43 -+ * td_ta_tsd_iter.c (td_ta_tsd_iter): Likewise.
7.44 -+ * td_thr_clear_event.c (td_thr_clear_event): Likewise.
7.45 -+ * td_thr_dbresume.c (td_thr_dbresume): Likewise.
7.46 -+ * td_thr_dbsuspend.c (td_thr_dbsuspend): Likewise.
7.47 -+ * td_thr_event_enable.c (td_thr_event_enable): Likewise.
7.48 -+ * td_thr_event_getmsg.c (td_thr_event_getmsg): Likewise.
7.49 -+ * td_thr_get_info.c (td_thr_get_info): Likewise.
7.50 -+ * td_thr_getfpregs.c (td_thr_getfpregs): Likewise.
7.51 -+ * td_thr_getgregs.c (td_thr_getgregs): Likewise.
7.52 -+ * td_thr_getxregs.c (td_thr_getxregs): Likewise.
7.53 -+ * td_thr_getxregsize.c (td_thr_getxregsize): Likewise.
7.54 -+ * td_thr_set_event.c (td_thr_set_event): Likewise.
7.55 -+ * td_thr_setfpregs.c (td_thr_setfpregs): Likewise.
7.56 -+ * td_thr_setgregs.c (td_thr_setgregs): Likewise.
7.57 -+ * td_thr_setprio.c (td_thr_setprio): Likewise.
7.58 -+ * td_thr_setsigpending.c (td_thr_setsigpending): Likewise.
7.59 -+ * td_thr_setxregs.c (td_thr_setxregs): Likewise.
7.60 -+ * td_thr_sigsetmask.c (td_thr_sigsetmask): Likewise.
7.61 -+ * td_thr_tsd.c (td_thr_tsd): Likewise.
7.62 -+ * td_thr_validate.c (td_thr_validate): Likewise.
7.63 -+
7.64 - 2001-04-12 Ulrich Drepper <drepper@redhat.com>
7.65 -
7.66 - * td_ta_map_id2thr.c: If thread terminated return TD_NOTHR.
7.67 -Index: td_init.c
7.68 -===================================================================
7.69 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_init.c,v
7.70 -retrieving revision 1.3
7.71 -retrieving revision 1.4
7.72 -diff -u -r1.3 -r1.4
7.73 ---- libc/linuxthreads_db/td_init.c 6 Jul 2001 05:27:23 -0000 1.3
7.74 -+++ libc/linuxthreads_db/td_init.c 28 Dec 2001 16:41:29 -0000 1.4
7.75 -@@ -1,5 +1,5 @@
7.76 - /* Initialization function of thread debugger support library.
7.77 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.78 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.79 - This file is part of the GNU C Library.
7.80 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.81 -
7.82 -@@ -27,6 +27,6 @@
7.83 - td_init (void)
7.84 - {
7.85 - /* XXX We have to figure out what has to be done. */
7.86 -- LOG (__FUNCTION__);
7.87 -+ LOG ("td_init");
7.88 - return TD_OK;
7.89 - }
7.90 -Index: td_log.c
7.91 -===================================================================
7.92 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_log.c,v
7.93 -retrieving revision 1.2
7.94 -retrieving revision 1.3
7.95 -diff -u -r1.2 -r1.3
7.96 ---- libc/linuxthreads_db/td_log.c 6 Jul 2001 05:27:23 -0000 1.2
7.97 -+++ libc/linuxthreads_db/td_log.c 28 Dec 2001 16:41:29 -0000 1.3
7.98 -@@ -1,5 +1,5 @@
7.99 - /* Noop, left for historical reasons.
7.100 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.101 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.102 - This file is part of the GNU C Library.
7.103 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.104 -
7.105 -@@ -25,8 +25,8 @@
7.106 - td_log (void)
7.107 - {
7.108 - /* This interface is deprecated in the Sun interface. We provide it
7.109 -- for compatibility but don't do anyhting ourself. We might in
7.110 -+ for compatibility but don't do anything ourself. We might in
7.111 - future do some logging if this seems reasonable. */
7.112 -- LOG (__FUNCTION__);
7.113 -+ LOG ("td_log");
7.114 - return TD_OK;
7.115 - }
7.116 -Index: td_ta_clear_event.c
7.117 -===================================================================
7.118 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_clear_event.c,v
7.119 -retrieving revision 1.3
7.120 -retrieving revision 1.4
7.121 -diff -u -r1.3 -r1.4
7.122 ---- libc/linuxthreads_db/td_ta_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
7.123 -+++ libc/linuxthreads_db/td_ta_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
7.124 -@@ -1,5 +1,5 @@
7.125 - /* Globally disable events.
7.126 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.127 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.128 - This file is part of the GNU C Library.
7.129 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.130 -
7.131 -@@ -29,7 +29,7 @@
7.132 - td_thr_events_t old_event;
7.133 - int i;
7.134 -
7.135 -- LOG (__FUNCTION__);
7.136 -+ LOG ("td_ta_clear_event");
7.137 -
7.138 - /* Test whether the TA parameter is ok. */
7.139 - if (! ta_ok (ta))
7.140 -Index: td_ta_delete.c
7.141 -===================================================================
7.142 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_delete.c,v
7.143 -retrieving revision 1.3
7.144 -retrieving revision 1.4
7.145 -diff -u -r1.3 -r1.4
7.146 ---- libc/linuxthreads_db/td_ta_delete.c 6 Jul 2001 05:27:23 -0000 1.3
7.147 -+++ libc/linuxthreads_db/td_ta_delete.c 28 Dec 2001 16:41:29 -0000 1.4
7.148 -@@ -1,5 +1,5 @@
7.149 - /* Detach to target process.
7.150 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.151 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.152 - This file is part of the GNU C Library.
7.153 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.154 -
7.155 -@@ -26,7 +26,7 @@
7.156 - td_err_e
7.157 - td_ta_delete (td_thragent_t *ta)
7.158 - {
7.159 -- LOG (__FUNCTION__);
7.160 -+ LOG ("td_ta_delete");
7.161 -
7.162 - /* Safety check. */
7.163 - if (ta == NULL || __td_agent_list == NULL)
7.164 -Index: td_ta_enable_stats.c
7.165 -===================================================================
7.166 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_enable_stats.c,v
7.167 -retrieving revision 1.3
7.168 -retrieving revision 1.4
7.169 -diff -u -r1.3 -r1.4
7.170 ---- libc/linuxthreads_db/td_ta_enable_stats.c 6 Jul 2001 05:27:23 -0000 1.3
7.171 -+++ libc/linuxthreads_db/td_ta_enable_stats.c 28 Dec 2001 16:41:29 -0000 1.4
7.172 -@@ -1,5 +1,5 @@
7.173 - /* Enable collection of statistics for process.
7.174 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.175 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.176 - This file is part of the GNU C Library.
7.177 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.178 -
7.179 -@@ -25,7 +25,7 @@
7.180 - td_ta_enable_stats (const td_thragent_t *ta, int enable)
7.181 - {
7.182 - /* XXX We have to figure out what has to be done. */
7.183 -- LOG (__FUNCTION__);
7.184 -+ LOG ("td_ta_enable_stats");
7.185 -
7.186 - /* Test whether the TA parameter is ok. */
7.187 - if (! ta_ok (ta))
7.188 -Index: td_ta_event_addr.c
7.189 -===================================================================
7.190 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_addr.c,v
7.191 -retrieving revision 1.5
7.192 -retrieving revision 1.6
7.193 -diff -u -r1.5 -r1.6
7.194 ---- libc/linuxthreads_db/td_ta_event_addr.c 6 Jul 2001 05:27:23 -0000 1.5
7.195 -+++ libc/linuxthreads_db/td_ta_event_addr.c 28 Dec 2001 16:41:29 -0000 1.6
7.196 -@@ -27,7 +27,7 @@
7.197 - td_err_e res = TD_NOEVENT;
7.198 - int idx = -1;
7.199 -
7.200 -- LOG (__FUNCTION__);
7.201 -+ LOG ("td_ta_event_addr");
7.202 -
7.203 - /* Test whether the TA parameter is ok. */
7.204 - if (! ta_ok (ta))
7.205 -Index: td_ta_event_getmsg.c
7.206 -===================================================================
7.207 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_getmsg.c,v
7.208 -retrieving revision 1.5
7.209 -retrieving revision 1.6
7.210 -diff -u -r1.5 -r1.6
7.211 ---- libc/linuxthreads_db/td_ta_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.5
7.212 -+++ libc/linuxthreads_db/td_ta_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.6
7.213 -@@ -1,5 +1,5 @@
7.214 - /* Retrieve event.
7.215 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.216 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.217 - This file is part of the GNU C Library.
7.218 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.219 -
7.220 -@@ -32,7 +32,7 @@
7.221 - td_eventbuf_t event;
7.222 - psaddr_t addr;
7.223 -
7.224 -- LOG (__FUNCTION__);
7.225 -+ LOG ("td_ta_event_getmsg");
7.226 -
7.227 - /* Test whether the TA parameter is ok. */
7.228 - if (! ta_ok (ta))
7.229 -Index: td_ta_get_nthreads.c
7.230 -===================================================================
7.231 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_nthreads.c,v
7.232 -retrieving revision 1.5
7.233 -retrieving revision 1.6
7.234 -diff -u -r1.5 -r1.6
7.235 ---- libc/linuxthreads_db/td_ta_get_nthreads.c 6 Jul 2001 05:27:23 -0000 1.5
7.236 -+++ libc/linuxthreads_db/td_ta_get_nthreads.c 28 Dec 2001 16:41:29 -0000 1.6
7.237 -@@ -25,7 +25,7 @@
7.238 - {
7.239 - psaddr_t addr;
7.240 -
7.241 -- LOG (__FUNCTION__);
7.242 -+ LOG ("td_ta_get_nthreads");
7.243 -
7.244 - /* Test whether the TA parameter is ok. */
7.245 - if (! ta_ok (ta))
7.246 -Index: td_ta_get_ph.c
7.247 -===================================================================
7.248 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_ph.c,v
7.249 -retrieving revision 1.3
7.250 -retrieving revision 1.4
7.251 -diff -u -r1.3 -r1.4
7.252 ---- libc/linuxthreads_db/td_ta_get_ph.c 6 Jul 2001 05:27:23 -0000 1.3
7.253 -+++ libc/linuxthreads_db/td_ta_get_ph.c 28 Dec 2001 16:41:29 -0000 1.4
7.254 -@@ -1,5 +1,5 @@
7.255 - /* Get external process handle.
7.256 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.257 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.258 - This file is part of the GNU C Library.
7.259 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.260 -
7.261 -@@ -24,7 +24,7 @@
7.262 - td_err_e
7.263 - td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
7.264 - {
7.265 -- LOG (__FUNCTION__);
7.266 -+ LOG ("td_ta_get_ph");
7.267 -
7.268 - /* Test whether the TA parameter is ok. */
7.269 - if (! ta_ok (ta))
7.270 -Index: td_ta_get_stats.c
7.271 -===================================================================
7.272 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_stats.c,v
7.273 -retrieving revision 1.3
7.274 -retrieving revision 1.4
7.275 -diff -u -r1.3 -r1.4
7.276 ---- libc/linuxthreads_db/td_ta_get_stats.c 6 Jul 2001 05:27:23 -0000 1.3
7.277 -+++ libc/linuxthreads_db/td_ta_get_stats.c 28 Dec 2001 16:41:29 -0000 1.4
7.278 -@@ -1,5 +1,5 @@
7.279 - /* Retrieve statistics for process.
7.280 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.281 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.282 - This file is part of the GNU C Library.
7.283 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.284 -
7.285 -@@ -25,7 +25,7 @@
7.286 - td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
7.287 - {
7.288 - /* XXX We have to figure out what has to be done. */
7.289 -- LOG (__FUNCTION__);
7.290 -+ LOG ("td_ta_get_stats");
7.291 -
7.292 - /* Test whether the TA parameter is ok. */
7.293 - if (! ta_ok (ta))
7.294 -Index: td_ta_map_id2thr.c
7.295 -===================================================================
7.296 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_id2thr.c,v
7.297 -retrieving revision 1.4
7.298 -retrieving revision 1.5
7.299 -diff -u -r1.4 -r1.5
7.300 ---- libc/linuxthreads_db/td_ta_map_id2thr.c 6 Jul 2001 05:27:23 -0000 1.4
7.301 -+++ libc/linuxthreads_db/td_ta_map_id2thr.c 28 Dec 2001 16:41:29 -0000 1.5
7.302 -@@ -28,7 +28,7 @@
7.303 - struct _pthread_descr_struct pds;
7.304 - int pthread_threads_max;
7.305 -
7.306 -- LOG (__FUNCTION__);
7.307 -+ LOG ("td_ta_map_id2thr");
7.308 -
7.309 - /* Test whether the TA parameter is ok. */
7.310 - if (! ta_ok (ta))
7.311 -Index: td_ta_map_lwp2thr.c
7.312 -===================================================================
7.313 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_lwp2thr.c,v
7.314 -retrieving revision 1.5
7.315 -retrieving revision 1.6
7.316 -diff -u -r1.5 -r1.6
7.317 ---- libc/linuxthreads_db/td_ta_map_lwp2thr.c 6 Jul 2001 05:27:23 -0000 1.5
7.318 -+++ libc/linuxthreads_db/td_ta_map_lwp2thr.c 28 Dec 2001 16:41:29 -0000 1.6
7.319 -@@ -1,5 +1,5 @@
7.320 - /* Which thread is running on an lwp?
7.321 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.322 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.323 - This file is part of the GNU C Library.
7.324 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.325 -
7.326 -@@ -34,7 +34,7 @@
7.327 - # define num 1
7.328 - #endif
7.329 -
7.330 -- LOG (__FUNCTION__);
7.331 -+ LOG ("td_ta_map_lwp2thr");
7.332 -
7.333 - /* Test whether the TA parameter is ok. */
7.334 - if (! ta_ok (ta))
7.335 -Index: td_ta_new.c
7.336 -===================================================================
7.337 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_new.c,v
7.338 -retrieving revision 1.10
7.339 -retrieving revision 1.11
7.340 -diff -u -r1.10 -r1.11
7.341 ---- libc/linuxthreads_db/td_ta_new.c 6 Jul 2001 05:27:23 -0000 1.10
7.342 -+++ libc/linuxthreads_db/td_ta_new.c 28 Dec 2001 16:41:29 -0000 1.11
7.343 -@@ -35,7 +35,7 @@
7.344 - psaddr_t addr;
7.345 - struct agent_list *elemp;
7.346 -
7.347 -- LOG (__FUNCTION__);
7.348 -+ LOG ("td_ta_new");
7.349 -
7.350 - /* Get the global event mask. This is one of the variables which
7.351 - are new in the thread library to enable debugging. If it is
7.352 -Index: td_ta_reset_stats.c
7.353 -===================================================================
7.354 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_reset_stats.c,v
7.355 -retrieving revision 1.3
7.356 -retrieving revision 1.4
7.357 -diff -u -r1.3 -r1.4
7.358 ---- libc/linuxthreads_db/td_ta_reset_stats.c 6 Jul 2001 05:27:23 -0000 1.3
7.359 -+++ libc/linuxthreads_db/td_ta_reset_stats.c 28 Dec 2001 16:41:29 -0000 1.4
7.360 -@@ -1,5 +1,5 @@
7.361 - /* Reset statistics.
7.362 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.363 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.364 - This file is part of the GNU C Library.
7.365 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.366 -
7.367 -@@ -25,7 +25,7 @@
7.368 - td_ta_reset_stats (const td_thragent_t *ta)
7.369 - {
7.370 - /* XXX We have to figure out what has to be done. */
7.371 -- LOG (__FUNCTION__);
7.372 -+ LOG ("td_ta_reset_stats");
7.373 -
7.374 - /* Test whether the TA parameter is ok. */
7.375 - if (! ta_ok (ta))
7.376 -Index: td_ta_set_event.c
7.377 -===================================================================
7.378 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_set_event.c,v
7.379 -retrieving revision 1.4
7.380 -retrieving revision 1.5
7.381 -diff -u -r1.4 -r1.5
7.382 ---- libc/linuxthreads_db/td_ta_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
7.383 -+++ libc/linuxthreads_db/td_ta_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
7.384 -@@ -1,5 +1,5 @@
7.385 - /* Globally enable events.
7.386 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.387 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.388 - This file is part of the GNU C Library.
7.389 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.390 -
7.391 -@@ -29,7 +29,7 @@
7.392 - td_thr_events_t old_event;
7.393 - int i;
7.394 -
7.395 -- LOG (__FUNCTION__);
7.396 -+ LOG ("td_ta_set_event");
7.397 -
7.398 - /* Test whether the TA parameter is ok. */
7.399 - if (! ta_ok (ta))
7.400 -Index: td_ta_setconcurrency.c
7.401 -===================================================================
7.402 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_setconcurrency.c,v
7.403 -retrieving revision 1.3
7.404 -retrieving revision 1.4
7.405 -diff -u -r1.3 -r1.4
7.406 ---- libc/linuxthreads_db/td_ta_setconcurrency.c 6 Jul 2001 05:27:23 -0000 1.3
7.407 -+++ libc/linuxthreads_db/td_ta_setconcurrency.c 28 Dec 2001 16:41:29 -0000 1.4
7.408 -@@ -1,5 +1,5 @@
7.409 - /* Set suggested concurrency level for process.
7.410 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.411 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.412 - This file is part of the GNU C Library.
7.413 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.414 -
7.415 -@@ -25,7 +25,7 @@
7.416 - td_ta_setconcurrency (const td_thragent_t *ta, int level)
7.417 - {
7.418 - /* This is something LinuxThreads does not support. */
7.419 -- LOG (__FUNCTION__);
7.420 -+ LOG ("td_ta_setconcurrency");
7.421 -
7.422 - /* Test whether the TA parameter is ok. */
7.423 - if (! ta_ok (ta))
7.424 -Index: td_ta_thr_iter.c
7.425 -===================================================================
7.426 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_thr_iter.c,v
7.427 -retrieving revision 1.11
7.428 -retrieving revision 1.12
7.429 -diff -u -r1.11 -r1.12
7.430 ---- libc/linuxthreads_db/td_ta_thr_iter.c 6 Jul 2001 05:27:23 -0000 1.11
7.431 -+++ libc/linuxthreads_db/td_ta_thr_iter.c 28 Dec 2001 16:41:29 -0000 1.12
7.432 -@@ -1,5 +1,5 @@
7.433 - /* Iterate over a process's threads.
7.434 -- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
7.435 -+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
7.436 - This file is part of the GNU C Library.
7.437 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.438 -
7.439 -@@ -86,7 +86,7 @@
7.440 - # define num 1
7.441 - #endif
7.442 -
7.443 -- LOG (__FUNCTION__);
7.444 -+ LOG ("td_ta_thr_iter");
7.445 -
7.446 - /* Test whether the TA parameter is ok. */
7.447 - if (! ta_ok (ta))
7.448 -Index: td_ta_tsd_iter.c
7.449 -===================================================================
7.450 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_tsd_iter.c,v
7.451 -retrieving revision 1.4
7.452 -retrieving revision 1.5
7.453 -diff -u -r1.4 -r1.5
7.454 ---- libc/linuxthreads_db/td_ta_tsd_iter.c 6 Jul 2001 05:27:23 -0000 1.4
7.455 -+++ libc/linuxthreads_db/td_ta_tsd_iter.c 28 Dec 2001 16:41:29 -0000 1.5
7.456 -@@ -1,5 +1,5 @@
7.457 - /* Iterate over a process's thread-specific data.
7.458 -- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
7.459 -+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
7.460 - This file is part of the GNU C Library.
7.461 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.462 -
7.463 -@@ -29,7 +29,7 @@
7.464 - int pthread_keys_max;
7.465 - int cnt;
7.466 -
7.467 -- LOG (__FUNCTION__);
7.468 -+ LOG ("td_ta_tsd_iter");
7.469 -
7.470 - /* Test whether the TA parameter is ok. */
7.471 - if (! ta_ok (ta))
7.472 -Index: td_thr_clear_event.c
7.473 -===================================================================
7.474 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_clear_event.c,v
7.475 -retrieving revision 1.3
7.476 -retrieving revision 1.4
7.477 -diff -u -r1.3 -r1.4
7.478 ---- libc/linuxthreads_db/td_thr_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
7.479 -+++ libc/linuxthreads_db/td_thr_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
7.480 -@@ -1,5 +1,5 @@
7.481 - /* Disable specific event for thread.
7.482 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.483 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.484 - This file is part of the GNU C Library.
7.485 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.486 -
7.487 -@@ -31,7 +31,7 @@
7.488 - td_thr_events_t old_event;
7.489 - int i;
7.490 -
7.491 -- LOG (__FUNCTION__);
7.492 -+ LOG ("td_thr_clear_event");
7.493 -
7.494 - /* Write the new value into the thread data structure. */
7.495 - if (ps_pdread (th->th_ta_p->ph,
7.496 -Index: td_thr_dbresume.c
7.497 -===================================================================
7.498 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbresume.c,v
7.499 -retrieving revision 1.2
7.500 -retrieving revision 1.3
7.501 -diff -u -r1.2 -r1.3
7.502 ---- libc/linuxthreads_db/td_thr_dbresume.c 6 Jul 2001 05:27:23 -0000 1.2
7.503 -+++ libc/linuxthreads_db/td_thr_dbresume.c 28 Dec 2001 16:41:29 -0000 1.3
7.504 -@@ -1,5 +1,5 @@
7.505 - /* Resume execution of given thread.
7.506 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.507 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.508 - This file is part of the GNU C Library.
7.509 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.510 -
7.511 -@@ -25,6 +25,6 @@
7.512 - td_thr_dbresume (const td_thrhandle_t *th)
7.513 - {
7.514 - /* XXX We have to figure out what has to be done. */
7.515 -- LOG (__FUNCTION__);
7.516 -+ LOG ("td_thr_dbresume");
7.517 - return TD_NOCAPAB;
7.518 - }
7.519 -Index: td_thr_dbsuspend.c
7.520 -===================================================================
7.521 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbsuspend.c,v
7.522 -retrieving revision 1.2
7.523 -retrieving revision 1.3
7.524 -diff -u -r1.2 -r1.3
7.525 ---- libc/linuxthreads_db/td_thr_dbsuspend.c 6 Jul 2001 05:27:23 -0000 1.2
7.526 -+++ libc/linuxthreads_db/td_thr_dbsuspend.c 28 Dec 2001 16:41:29 -0000 1.3
7.527 -@@ -1,5 +1,5 @@
7.528 - /* Suspend execution of given thread.
7.529 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.530 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.531 - This file is part of the GNU C Library.
7.532 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.533 -
7.534 -@@ -25,6 +25,6 @@
7.535 - td_thr_dbsuspend (const td_thrhandle_t *th)
7.536 - {
7.537 - /* XXX We have to figure out what has to be done. */
7.538 -- LOG (__FUNCTION__);
7.539 -+ LOG ("td_thr_dbsuspend");
7.540 - return TD_NOCAPAB;
7.541 - }
7.542 -Index: td_thr_event_enable.c
7.543 -===================================================================
7.544 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_enable.c,v
7.545 -retrieving revision 1.3
7.546 -retrieving revision 1.4
7.547 -diff -u -r1.3 -r1.4
7.548 ---- libc/linuxthreads_db/td_thr_event_enable.c 6 Jul 2001 05:27:23 -0000 1.3
7.549 -+++ libc/linuxthreads_db/td_thr_event_enable.c 28 Dec 2001 16:41:29 -0000 1.4
7.550 -@@ -1,5 +1,5 @@
7.551 - /* Enable event process-wide.
7.552 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.553 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.554 - This file is part of the GNU C Library.
7.555 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.556 -
7.557 -@@ -28,7 +28,7 @@
7.558 - const td_thrhandle_t *th;
7.559 - int onoff;
7.560 - {
7.561 -- LOG (__FUNCTION__);
7.562 -+ LOG ("td_thr_event_enable");
7.563 -
7.564 - /* Write the new value into the thread data structure. */
7.565 - if (ps_pdwrite (th->th_ta_p->ph,
7.566 -Index: td_thr_event_getmsg.c
7.567 -===================================================================
7.568 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_getmsg.c,v
7.569 -retrieving revision 1.3
7.570 -retrieving revision 1.4
7.571 -diff -u -r1.3 -r1.4
7.572 ---- libc/linuxthreads_db/td_thr_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.3
7.573 -+++ libc/linuxthreads_db/td_thr_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.4
7.574 -@@ -1,5 +1,5 @@
7.575 - /* Retrieve event.
7.576 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.577 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.578 - This file is part of the GNU C Library.
7.579 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.580 -
7.581 -@@ -29,7 +29,7 @@
7.582 - {
7.583 - td_eventbuf_t event;
7.584 -
7.585 -- LOG (__FUNCTION__);
7.586 -+ LOG ("td_thr_event_getmsg");
7.587 -
7.588 - /* Read the even structure from the target. */
7.589 - if (ps_pdread (th->th_ta_p->ph,
7.590 -Index: td_thr_get_info.c
7.591 -===================================================================
7.592 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_get_info.c,v
7.593 -retrieving revision 1.9
7.594 -retrieving revision 1.10
7.595 -diff -u -r1.9 -r1.10
7.596 ---- libc/linuxthreads_db/td_thr_get_info.c 6 Jul 2001 05:27:23 -0000 1.9
7.597 -+++ libc/linuxthreads_db/td_thr_get_info.c 28 Dec 2001 16:41:29 -0000 1.10
7.598 -@@ -1,5 +1,5 @@
7.599 - /* Get thread information.
7.600 -- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
7.601 -+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
7.602 - This file is part of the GNU C Library.
7.603 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.604 -
7.605 -@@ -29,7 +29,7 @@
7.606 - {
7.607 - struct _pthread_descr_struct pds;
7.608 -
7.609 -- LOG (__FUNCTION__);
7.610 -+ LOG ("td_thr_get_info");
7.611 -
7.612 - /* Get the thread descriptor. */
7.613 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
7.614 -Index: td_thr_getfpregs.c
7.615 -===================================================================
7.616 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getfpregs.c,v
7.617 -retrieving revision 1.4
7.618 -retrieving revision 1.5
7.619 -diff -u -r1.4 -r1.5
7.620 ---- libc/linuxthreads_db/td_thr_getfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
7.621 -+++ libc/linuxthreads_db/td_thr_getfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
7.622 -@@ -26,7 +26,7 @@
7.623 - {
7.624 - struct _pthread_descr_struct pds;
7.625 -
7.626 -- LOG (__FUNCTION__);
7.627 -+ LOG ("td_thr_getfpregs");
7.628 -
7.629 - /* We have to get the state and the PID for this thread. */
7.630 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
7.631 -Index: td_thr_getgregs.c
7.632 -===================================================================
7.633 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getgregs.c,v
7.634 -retrieving revision 1.8
7.635 -retrieving revision 1.9
7.636 -diff -u -r1.8 -r1.9
7.637 ---- libc/linuxthreads_db/td_thr_getgregs.c 6 Jul 2001 05:27:23 -0000 1.8
7.638 -+++ libc/linuxthreads_db/td_thr_getgregs.c 28 Dec 2001 16:41:29 -0000 1.9
7.639 -@@ -26,7 +26,7 @@
7.640 - {
7.641 - struct _pthread_descr_struct pds;
7.642 -
7.643 -- LOG (__FUNCTION__);
7.644 -+ LOG ("td_thr_getgregs");
7.645 -
7.646 - /* We have to get the state and the PID for this thread. */
7.647 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
7.648 -Index: td_thr_getxregs.c
7.649 -===================================================================
7.650 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregs.c,v
7.651 -retrieving revision 1.2
7.652 -retrieving revision 1.3
7.653 -diff -u -r1.2 -r1.3
7.654 ---- libc/linuxthreads_db/td_thr_getxregs.c 6 Jul 2001 05:27:23 -0000 1.2
7.655 -+++ libc/linuxthreads_db/td_thr_getxregs.c 28 Dec 2001 16:41:29 -0000 1.3
7.656 -@@ -1,5 +1,5 @@
7.657 - /* Get a thread's extra state register set.
7.658 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.659 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.660 - This file is part of the GNU C Library.
7.661 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.662 -
7.663 -@@ -25,6 +25,6 @@
7.664 - td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
7.665 - {
7.666 - /* XXX This might be platform specific. */
7.667 -- LOG (__FUNCTION__);
7.668 -+ LOG ("td_thr_getxregs");
7.669 - return TD_NOXREGS;
7.670 - }
7.671 -Index: td_thr_getxregsize.c
7.672 -===================================================================
7.673 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregsize.c,v
7.674 -retrieving revision 1.2
7.675 -retrieving revision 1.3
7.676 -diff -u -r1.2 -r1.3
7.677 ---- libc/linuxthreads_db/td_thr_getxregsize.c 6 Jul 2001 05:27:23 -0000 1.2
7.678 -+++ libc/linuxthreads_db/td_thr_getxregsize.c 28 Dec 2001 16:41:29 -0000 1.3
7.679 -@@ -1,5 +1,5 @@
7.680 - /* Get the size of the extra state register set for this architecture.
7.681 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.682 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.683 - This file is part of the GNU C Library.
7.684 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.685 -
7.686 -@@ -25,6 +25,6 @@
7.687 - td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
7.688 - {
7.689 - /* XXX This might be platform specific. */
7.690 -- LOG (__FUNCTION__);
7.691 -+ LOG ("td_thr_getxregsize");
7.692 - return TD_NOXREGS;
7.693 - }
7.694 -Index: td_thr_set_event.c
7.695 -===================================================================
7.696 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_set_event.c,v
7.697 -retrieving revision 1.4
7.698 -retrieving revision 1.5
7.699 -diff -u -r1.4 -r1.5
7.700 ---- libc/linuxthreads_db/td_thr_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
7.701 -+++ libc/linuxthreads_db/td_thr_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
7.702 -@@ -1,5 +1,5 @@
7.703 - /* Enable specific event for thread.
7.704 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.705 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.706 - This file is part of the GNU C Library.
7.707 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.708 -
7.709 -@@ -31,7 +31,7 @@
7.710 - td_thr_events_t old_event;
7.711 - int i;
7.712 -
7.713 -- LOG (__FUNCTION__);
7.714 -+ LOG ("td_thr_set_event");
7.715 -
7.716 - /* Write the new value into the thread data structure. */
7.717 - if (ps_pdread (th->th_ta_p->ph,
7.718 -Index: td_thr_setfpregs.c
7.719 -===================================================================
7.720 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setfpregs.c,v
7.721 -retrieving revision 1.4
7.722 -retrieving revision 1.5
7.723 -diff -u -r1.4 -r1.5
7.724 ---- libc/linuxthreads_db/td_thr_setfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
7.725 -+++ libc/linuxthreads_db/td_thr_setfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
7.726 -@@ -26,7 +26,7 @@
7.727 - {
7.728 - struct _pthread_descr_struct pds;
7.729 -
7.730 -- LOG (__FUNCTION__);
7.731 -+ LOG ("td_thr_setfpregs");
7.732 -
7.733 - /* We have to get the state and the PID for this thread. */
7.734 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
7.735 -Index: td_thr_setgregs.c
7.736 -===================================================================
7.737 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setgregs.c,v
7.738 -retrieving revision 1.6
7.739 -retrieving revision 1.7
7.740 -diff -u -r1.6 -r1.7
7.741 ---- libc/linuxthreads_db/td_thr_setgregs.c 6 Jul 2001 05:27:23 -0000 1.6
7.742 -+++ libc/linuxthreads_db/td_thr_setgregs.c 28 Dec 2001 16:41:29 -0000 1.7
7.743 -@@ -26,7 +26,7 @@
7.744 - {
7.745 - struct _pthread_descr_struct pds;
7.746 -
7.747 -- LOG (__FUNCTION__);
7.748 -+ LOG ("td_thr_setgregs");
7.749 -
7.750 - /* We have to get the state and the PID for this thread. */
7.751 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
7.752 -Index: td_thr_setprio.c
7.753 -===================================================================
7.754 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setprio.c,v
7.755 -retrieving revision 1.2
7.756 -retrieving revision 1.3
7.757 -diff -u -r1.2 -r1.3
7.758 ---- libc/linuxthreads_db/td_thr_setprio.c 6 Jul 2001 05:27:23 -0000 1.2
7.759 -+++ libc/linuxthreads_db/td_thr_setprio.c 28 Dec 2001 16:41:29 -0000 1.3
7.760 -@@ -1,5 +1,5 @@
7.761 - /* Set a thread's priority.
7.762 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.763 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.764 - This file is part of the GNU C Library.
7.765 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.766 -
7.767 -@@ -25,6 +25,6 @@
7.768 - td_thr_setprio (const td_thrhandle_t *th, int prio)
7.769 - {
7.770 - /* XXX We have to figure out what has to be done. */
7.771 -- LOG (__FUNCTION__);
7.772 -+ LOG ("td_thr_setprio");
7.773 - return TD_OK;
7.774 - }
7.775 -Index: td_thr_setsigpending.c
7.776 -===================================================================
7.777 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setsigpending.c,v
7.778 -retrieving revision 1.2
7.779 -retrieving revision 1.3
7.780 -diff -u -r1.2 -r1.3
7.781 ---- libc/linuxthreads_db/td_thr_setsigpending.c 6 Jul 2001 05:27:23 -0000 1.2
7.782 -+++ libc/linuxthreads_db/td_thr_setsigpending.c 28 Dec 2001 16:41:29 -0000 1.3
7.783 -@@ -1,5 +1,5 @@
7.784 - /* Raise a signal for a thread.
7.785 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.786 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.787 - This file is part of the GNU C Library.
7.788 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.789 -
7.790 -@@ -26,6 +26,6 @@
7.791 - const sigset_t *ss)
7.792 - {
7.793 - /* XXX We have to figure out what has to be done. */
7.794 -- LOG (__FUNCTION__);
7.795 -+ LOG ("td_thr_setsigpending");
7.796 - return TD_OK;
7.797 - }
7.798 -Index: td_thr_setxregs.c
7.799 -===================================================================
7.800 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setxregs.c,v
7.801 -retrieving revision 1.2
7.802 -retrieving revision 1.3
7.803 -diff -u -r1.2 -r1.3
7.804 ---- libc/linuxthreads_db/td_thr_setxregs.c 6 Jul 2001 05:27:23 -0000 1.2
7.805 -+++ libc/linuxthreads_db/td_thr_setxregs.c 28 Dec 2001 16:41:29 -0000 1.3
7.806 -@@ -1,5 +1,5 @@
7.807 - /* Set a thread's extra state register set.
7.808 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.809 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.810 - This file is part of the GNU C Library.
7.811 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.812 -
7.813 -@@ -25,6 +25,6 @@
7.814 - td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
7.815 - {
7.816 - /* XXX This might have to be platform specific. */
7.817 -- LOG (__FUNCTION__);
7.818 -+ LOG ("td_thr_setxregs");
7.819 - return TD_NOXREGS;
7.820 - }
7.821 -Index: td_thr_sigsetmask.c
7.822 -===================================================================
7.823 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_sigsetmask.c,v
7.824 -retrieving revision 1.2
7.825 -retrieving revision 1.3
7.826 -diff -u -r1.2 -r1.3
7.827 ---- libc/linuxthreads_db/td_thr_sigsetmask.c 6 Jul 2001 05:27:23 -0000 1.2
7.828 -+++ libc/linuxthreads_db/td_thr_sigsetmask.c 28 Dec 2001 16:41:29 -0000 1.3
7.829 -@@ -1,5 +1,5 @@
7.830 - /* Set a thread's signal mask.
7.831 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.832 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.833 - This file is part of the GNU C Library.
7.834 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.835 -
7.836 -@@ -25,6 +25,6 @@
7.837 - td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
7.838 - {
7.839 - /* XXX We have to figure out what has to be done. */
7.840 -- LOG (__FUNCTION__);
7.841 -+ LOG ("td_thr_sigsetmask");
7.842 - return TD_OK;
7.843 - }
7.844 -Index: td_thr_tsd.c
7.845 -===================================================================
7.846 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_tsd.c,v
7.847 -retrieving revision 1.2
7.848 -retrieving revision 1.3
7.849 -diff -u -r1.2 -r1.3
7.850 ---- libc/linuxthreads_db/td_thr_tsd.c 6 Jul 2001 05:27:23 -0000 1.2
7.851 -+++ libc/linuxthreads_db/td_thr_tsd.c 28 Dec 2001 16:41:29 -0000 1.3
7.852 -@@ -1,5 +1,5 @@
7.853 - /* Get a thread-specific data pointer for a thread.
7.854 -- Copyright (C) 1999 Free Software Foundation, Inc.
7.855 -+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
7.856 - This file is part of the GNU C Library.
7.857 - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
7.858 -
7.859 -@@ -33,7 +33,7 @@
7.860 - unsigned int idx2nd;
7.861 - void *p;
7.862 -
7.863 -- LOG (__FUNCTION__);
7.864 -+ LOG ("td_thr_tsd");
7.865 -
7.866 - /* Get the thread descriptor. */
7.867 - if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
7.868 -Index: td_thr_validate.c
7.869 -===================================================================
7.870 -RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_validate.c,v
7.871 -retrieving revision 1.4
7.872 -retrieving revision 1.5
7.873 -diff -u -r1.4 -r1.5
7.874 ---- libc/linuxthreads_db/td_thr_validate.c 6 Jul 2001 05:27:23 -0000 1.4
7.875 -+++ libc/linuxthreads_db/td_thr_validate.c 28 Dec 2001 16:41:29 -0000 1.5
7.876 -@@ -28,7 +28,7 @@
7.877 - int pthread_threads_max = th->th_ta_p->pthread_threads_max;
7.878 - int cnt;
7.879 -
7.880 -- LOG (__FUNCTION__);
7.881 -+ LOG ("td_thr_validate");
7.882 -
7.883 - /* Now get all descriptors, one after the other. */
7.884 - for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)
8.1 --- a/patches/glibc/linuxthreads-2.2.5/glibc-2.2.5-alpha-self-clobber.patch Wed Aug 15 16:18:35 2007 +0000
8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
8.3 @@ -1,25 +0,0 @@
8.4 -wget http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/alpha/pt-machine.h.diff?r1=1.9&r2=1.10&cvsroot=glibc
8.5 -
8.6 -Should fix error
8.7 -
8.8 -internals.h: In function `pthread_setcancelstate':
8.9 -internals.h:381: error: asm-specifier for variable `__self' conflicts with asm clobber list
8.10 -make[2]: *** [/home/dank/crosstool-0.28/build/alpha-unknown-linux-gnu/gcc-3.4.1-glibc-2.2.5/build-glibc/linuxthreads/cancel.o] Error 1
8.11 -make[2]: Leaving directory `/home/dank/crosstool-0.28/build/alpha-unknown-linux-gnu/gcc-3.4.1-glibc-2.2.5/glibc-2.2.5/linuxthreads'
8.12 -
8.13 -===================================================================
8.14 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/alpha/pt-machine.h,v
8.15 -retrieving revision 1.9
8.16 -retrieving revision 1.10
8.17 -diff -u -r1.9 -r1.10
8.18 ---- libc/linuxthreads/sysdeps/alpha/pt-machine.h 2002/04/06 04:05:13 1.9
8.19 -+++ libc/linuxthreads/sysdeps/alpha/pt-machine.h 2002/05/20 20:09:34 1.10
8.20 -@@ -76,7 +76,7 @@
8.21 - #define THREAD_SELF \
8.22 - ({ \
8.23 - register pthread_descr __self __asm__("$0"); \
8.24 -- __asm__ ("call_pal %1" : "=r"(__self) : "i"(PAL_rduniq) : "$0"); \
8.25 -+ __asm__ ("call_pal %1" : "=r"(__self) : "i"(PAL_rduniq)); \
8.26 - __self; \
8.27 - })
8.28 -
9.1 --- a/patches/glibc/linuxthreads-2.2.5/linuxthreads-2.2.5-ppc405erratum77.patch Wed Aug 15 16:18:35 2007 +0000
9.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
9.3 @@ -1,34 +0,0 @@
9.4 -# see http://bugs.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4155
9.5 -# and http://www.kegel.com/xgcc3/ppc405erratum77.html
9.6 -# See also matching patch for glibc
9.7 -
9.8 -diff -aur glibc-2.2.5.orig/linuxthreads/sysdeps/powerpc/pt-machine.h glibc-2.2.5/linuxthreads/sysdeps/powerpc/pt-machine.h
9.9 ---- glibc-2.2.5.orig/linuxthreads/sysdeps/powerpc/pt-machine.h Thu May 17 12:47:46 2001
9.10 -+++ glibc-2.2.5/linuxthreads/sysdeps/powerpc/pt-machine.h Tue Jul 23 05:38:24 2002
9.11 -@@ -41,6 +41,17 @@
9.12 - #define HAS_COMPARE_AND_SWAP_WITH_RELEASE_SEMANTICS
9.13 - #define IMPLEMENT_TAS_WITH_CAS
9.14 -
9.15 -+#ifdef __PPC405__
9.16 -+/* workaround for PPC405 erratum #77 - Mark Hatle, dank. References:
9.17 -+ http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/89DED00DEBFF54BF87256A8000491BA2/$file/405CR_C_errata_1_2.pdf
9.18 -+ http://ppc.bkbits.net:8080/linuxppc_2_4_devel/cset@1.489
9.19 -+ http://www.kegel.com/xgcc3/ppc405erratum77.html
9.20 -+ FIXME: using dbct instead of sync would be faster */
9.21 -+#define __LINUXTHREADS_PPC405_ERR77_SYNC "sync \n\t"
9.22 -+#else
9.23 -+#define __LINUXTHREADS_PPC405_ERR77_SYNC
9.24 -+#endif
9.25 -+
9.26 - PT_EI int
9.27 - __compare_and_swap (long int *p, long int oldval, long int newval)
9.28 - {
9.29 -@@ -50,6 +61,7 @@
9.30 - "0: lwarx %0,0,%1 ;"
9.31 - " xor. %0,%3,%0;"
9.32 - " bne 1f;"
9.33 -+ __LINUXTHREADS_PPC405_ERR77_SYNC
9.34 - " stwcx. %2,0,%1;"
9.35 - " bne- 0b;"
9.36 - "1: "
9.37 -
10.1 --- a/patches/glibc/linuxthreads-2.2.5/pt-initfini-alpha.patch Wed Aug 15 16:18:35 2007 +0000
10.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
10.3 @@ -1,119 +0,0 @@
10.4 ---- glibc-2.2.5/linuxthreads/sysdeps/alpha/elf/pt-initfini.c.old Fri Jun 6 22:02:08 2003
10.5 -+++ glibc-2.2.5/linuxthreads/sysdeps/alpha/elf/pt-initfini.c Fri Jun 6 22:02:33 2003
10.6 -@@ -37,60 +37,60 @@
10.7 - files, all of which may have different GP values. So we must reload
10.8 - the GP value from crti.o in crtn.o. */
10.9 -
10.10 --__asm__ ("
10.11 --
10.12 --#include \"defs.h\"
10.13 --
10.14 --/*@HEADER_ENDS*/
10.15 --
10.16 --/*@_init_PROLOG_BEGINS*/
10.17 -- .section .init, \"ax\", @progbits
10.18 -- .globl _init
10.19 -- .ent _init
10.20 --_init:
10.21 -- ldgp $29, 0($27)
10.22 -- subq $30, 16, $30
10.23 -- lda $27, __pthread_initialize_minimal
10.24 -- stq $26, 0($30)
10.25 -- stq $29, 8($30)
10.26 -- .prologue 1
10.27 -- jsr $26, ($27), __pthread_initialize_minimal
10.28 -- ldq $29, 8($30)
10.29 -- .align 3
10.30 -- .end _init
10.31 -- .size _init, 0
10.32 --/*@_init_PROLOG_ENDS*/
10.33 --
10.34 --/*@_init_EPILOG_BEGINS*/
10.35 -- .section .init, \"ax\", @progbits
10.36 -- ldq $26, 0($30)
10.37 -- ldq $29, 8($30)
10.38 -- addq $30, 16, $30
10.39 -- ret
10.40 --/*@_init_EPILOG_ENDS*/
10.41 --
10.42 --/*@_fini_PROLOG_BEGINS*/
10.43 -- .section .fini, \"ax\", @progbits
10.44 -- .globl _fini
10.45 -- .ent _fini
10.46 --_fini:
10.47 -- ldgp $29, 0($27)
10.48 -- subq $30, 16, $30
10.49 -- stq $26, 0($30)
10.50 -- stq $29, 8($30)
10.51 -- .prologue 1
10.52 -- .align 3
10.53 -- .end _fini
10.54 -- .size _fini, 0
10.55 --/*@_fini_PROLOG_ENDS*/
10.56 --
10.57 --/*@_fini_EPILOG_BEGINS*/
10.58 -- .section .fini, \"ax\", @progbits
10.59 -- ldq $26, 0($30)
10.60 -- ldq $29, 8($30)
10.61 -- addq $30, 16, $30
10.62 -- ret
10.63 --/*@_fini_EPILOG_ENDS*/
10.64 --
10.65 --/*@TRAILER_BEGINS*/
10.66 -+__asm__ ("\n\
10.67 -+\n\
10.68 -+#include \"defs.h\"\n\
10.69 -+\n\
10.70 -+/*@HEADER_ENDS*/\n\
10.71 -+\n\
10.72 -+/*@_init_PROLOG_BEGINS*/\n\
10.73 -+ .section .init, \"ax\", @progbits\n\
10.74 -+ .globl _init\n\
10.75 -+ .ent _init\n\
10.76 -+_init:\n\
10.77 -+ ldgp $29, 0($27)\n\
10.78 -+ subq $30, 16, $30\n\
10.79 -+ lda $27, __pthread_initialize_minimal\n\
10.80 -+ stq $26, 0($30)\n\
10.81 -+ stq $29, 8($30)\n\
10.82 -+ .prologue 1\n\
10.83 -+ jsr $26, ($27), __pthread_initialize_minimal\n\
10.84 -+ ldq $29, 8($30)\n\
10.85 -+ .align 3\n\
10.86 -+ .end _init\n\
10.87 -+ .size _init, 0\n\
10.88 -+/*@_init_PROLOG_ENDS*/\n\
10.89 -+\n\
10.90 -+/*@_init_EPILOG_BEGINS*/\n\
10.91 -+ .section .init, \"ax\", @progbits\n\
10.92 -+ ldq $26, 0($30)\n\
10.93 -+ ldq $29, 8($30)\n\
10.94 -+ addq $30, 16, $30\n\
10.95 -+ ret\n\
10.96 -+/*@_init_EPILOG_ENDS*/\n\
10.97 -+\n\
10.98 -+/*@_fini_PROLOG_BEGINS*/\n\
10.99 -+ .section .fini, \"ax\", @progbits\n\
10.100 -+ .globl _fini\n\
10.101 -+ .ent _fini\n\
10.102 -+_fini:\n\
10.103 -+ ldgp $29, 0($27)\n\
10.104 -+ subq $30, 16, $30\n\
10.105 -+ stq $26, 0($30)\n\
10.106 -+ stq $29, 8($30)\n\
10.107 -+ .prologue 1\n\
10.108 -+ .align 3\n\
10.109 -+ .end _fini\n\
10.110 -+ .size _fini, 0\n\
10.111 -+/*@_fini_PROLOG_ENDS*/\n\
10.112 -+\n\
10.113 -+/*@_fini_EPILOG_BEGINS*/\n\
10.114 -+ .section .fini, \"ax\", @progbits\n\
10.115 -+ ldq $26, 0($30)\n\
10.116 -+ ldq $29, 8($30)\n\
10.117 -+ addq $30, 16, $30\n\
10.118 -+ ret\n\
10.119 -+/*@_fini_EPILOG_ENDS*/\n\
10.120 -+\n\
10.121 -+/*@TRAILER_BEGINS*/\n\
10.122 - ");
11.1 --- a/patches/glibc/linuxthreads-2.2.5/pt-initfini-sh.patch Wed Aug 15 16:18:35 2007 +0000
11.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
11.3 @@ -1,267 +0,0 @@
11.4 ---- glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/sh/pt-initfini.c.old Wed May 28 09:29:55 2003
11.5 -+++ glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/sh/pt-initfini.c Wed May 28 09:30:11 2003
11.6 -@@ -36,134 +36,134 @@
11.7 - * crtn.s puts the corresponding function epilogues
11.8 - in the .init and .fini sections. */
11.9 -
11.10 --__asm__ ("
11.11 --
11.12 --#include \"defs.h\"
11.13 --#define SHARED
11.14 --
11.15 --/*@HEADER_ENDS*/
11.16 --
11.17 --/*@TESTS_BEGIN*/
11.18 --
11.19 --/*@TESTS_END*/
11.20 --
11.21 --/*@_init_PROLOG_BEGINS*/
11.22 -- .section .init
11.23 -- .align 5
11.24 -- .global _init
11.25 -- .type _init,@function
11.26 --_init:
11.27 -- mov.l r12,@-r15
11.28 -- mov.l r14,@-r15
11.29 -- sts.l pr,@-r15
11.30 --#ifdef SHARED
11.31 -- mova .L22,r0
11.32 -- mov.l .L22,r12
11.33 -- add r0,r12
11.34 -- mova .L24,r0
11.35 -- mov.l .L24,r1
11.36 -- add r0,r1
11.37 -- jsr @r1
11.38 -- nop
11.39 -- mova .L23,r0
11.40 -- mov.l .L23,r1
11.41 -- add r0,r1
11.42 --#else
11.43 -- mov.l .L24,r1
11.44 -- jsr @r1
11.45 -- nop
11.46 -- mov.l .L23,r1
11.47 --#endif
11.48 -- jsr @r1
11.49 -- mov r15,r14
11.50 -- bra 1f
11.51 -- nop
11.52 -- .align 2
11.53 --#ifdef SHARED
11.54 --.L22:
11.55 -- .long _GLOBAL_OFFSET_TABLE_
11.56 --.L23:
11.57 -- .long __gmon_start__@PLT
11.58 --.L24:
11.59 -- .long __pthread_initialize_minimal@PLT
11.60 --#else
11.61 --.L23:
11.62 -- .long __gmon_start__
11.63 --.L24:
11.64 -- .long __pthread_initialize_minimal
11.65 --#endif
11.66 -- .data
11.67 -- .global __fpscr_values
11.68 --__fpscr_values:
11.69 -- .long 0
11.70 -- .long 0x80000
11.71 -- .previous
11.72 --1:
11.73 -- ALIGN
11.74 -- END_INIT
11.75 --
11.76 --
11.77 --/*@_init_PROLOG_ENDS*/
11.78 --
11.79 --/*@_init_EPILOG_BEGINS*/
11.80 -- .section .init
11.81 -- mov r14,r15
11.82 -- lds.l @r15+,pr
11.83 -- mov.l @r15+,r14
11.84 -- rts
11.85 -- mov.l @r15+,r12
11.86 -- END_INIT
11.87 -- .section .text
11.88 -- .align 5
11.89 -- .weak __gmon_start__
11.90 -- .type __gmon_start__,@function
11.91 --__gmon_start__:
11.92 -- mov.l r14,@-r15
11.93 -- mov r15,r14
11.94 -- mov r14,r15
11.95 -- rts
11.96 -- mov.l @r15+,r14
11.97 --
11.98 --/*@_init_EPILOG_ENDS*/
11.99 --
11.100 --/*@_fini_PROLOG_BEGINS*/
11.101 -- .section .fini
11.102 -- .align 5
11.103 -- .global _fini
11.104 -- .type _fini,@function
11.105 --_fini:
11.106 -- mov.l r12,@-r15
11.107 -- mov.l r14,@-r15
11.108 -- sts.l pr,@-r15
11.109 --#ifdef SHARED
11.110 -- mova .L27,r0
11.111 -- mov.l .L27,r12
11.112 -- add r0,r12
11.113 --#endif
11.114 -- mov r15,r14
11.115 -- ALIGN
11.116 -- END_FINI
11.117 --#ifdef SHARED
11.118 -- bra 1f
11.119 -- nop
11.120 -- .align 2
11.121 --.L27:
11.122 -- .long _GLOBAL_OFFSET_TABLE_
11.123 --#endif
11.124 --1:
11.125 --/*@_fini_PROLOG_ENDS*/
11.126 --
11.127 --/*@_fini_EPILOG_BEGINS*/
11.128 -- .section .fini
11.129 -- mov r14,r15
11.130 -- lds.l @r15+,pr
11.131 -- mov.l @r15+,r14
11.132 -- rts
11.133 -- mov.l @r15+,r12
11.134 --
11.135 -- END_FINI
11.136 --
11.137 --/*@_fini_EPILOG_ENDS*/
11.138 --
11.139 --/*@TRAILER_BEGINS*/
11.140 -+__asm__ ("\n\
11.141 -+\n\
11.142 -+#include \"defs.h\"\n\
11.143 -+#define SHARED\n\
11.144 -+\n\
11.145 -+/*@HEADER_ENDS*/\n\
11.146 -+\n\
11.147 -+/*@TESTS_BEGIN*/\n\
11.148 -+\n\
11.149 -+/*@TESTS_END*/\n\
11.150 -+\n\
11.151 -+/*@_init_PROLOG_BEGINS*/\n\
11.152 -+ .section .init\n\
11.153 -+ .align 5\n\
11.154 -+ .global _init\n\
11.155 -+ .type _init,@function\n\
11.156 -+_init:\n\
11.157 -+ mov.l r12,@-r15\n\
11.158 -+ mov.l r14,@-r15\n\
11.159 -+ sts.l pr,@-r15\n\
11.160 -+#ifdef SHARED\n\
11.161 -+ mova .L22,r0\n\
11.162 -+ mov.l .L22,r12\n\
11.163 -+ add r0,r12\n\
11.164 -+ mova .L24,r0\n\
11.165 -+ mov.l .L24,r1\n\
11.166 -+ add r0,r1\n\
11.167 -+ jsr @r1\n\
11.168 -+ nop\n\
11.169 -+ mova .L23,r0\n\
11.170 -+ mov.l .L23,r1\n\
11.171 -+ add r0,r1\n\
11.172 -+#else\n\
11.173 -+ mov.l .L24,r1\n\
11.174 -+ jsr @r1\n\
11.175 -+ nop\n\
11.176 -+ mov.l .L23,r1\n\
11.177 -+#endif\n\
11.178 -+ jsr @r1\n\
11.179 -+ mov r15,r14\n\
11.180 -+ bra 1f\n\
11.181 -+ nop\n\
11.182 -+ .align 2\n\
11.183 -+#ifdef SHARED\n\
11.184 -+.L22:\n\
11.185 -+ .long _GLOBAL_OFFSET_TABLE_\n\
11.186 -+.L23:\n\
11.187 -+ .long __gmon_start__@PLT\n\
11.188 -+.L24:\n\
11.189 -+ .long __pthread_initialize_minimal@PLT\n\
11.190 -+#else\n\
11.191 -+.L23:\n\
11.192 -+ .long __gmon_start__\n\
11.193 -+.L24:\n\
11.194 -+ .long __pthread_initialize_minimal\n\
11.195 -+#endif\n\
11.196 -+ .data\n\
11.197 -+ .global __fpscr_values\n\
11.198 -+__fpscr_values:\n\
11.199 -+ .long 0\n\
11.200 -+ .long 0x80000\n\
11.201 -+ .previous\n\
11.202 -+1:\n\
11.203 -+ ALIGN\n\
11.204 -+ END_INIT\n\
11.205 -+\n\
11.206 -+ \n\
11.207 -+/*@_init_PROLOG_ENDS*/\n\
11.208 -+\n\
11.209 -+/*@_init_EPILOG_BEGINS*/\n\
11.210 -+ .section .init\n\
11.211 -+ mov r14,r15\n\
11.212 -+ lds.l @r15+,pr\n\
11.213 -+ mov.l @r15+,r14\n\
11.214 -+ rts \n\
11.215 -+ mov.l @r15+,r12\n\
11.216 -+ END_INIT\n\
11.217 -+ .section .text\n\
11.218 -+ .align 5\n\
11.219 -+ .weak __gmon_start__\n\
11.220 -+ .type __gmon_start__,@function\n\
11.221 -+__gmon_start__:\n\
11.222 -+ mov.l r14,@-r15\n\
11.223 -+ mov r15,r14\n\
11.224 -+ mov r14,r15\n\
11.225 -+ rts \n\
11.226 -+ mov.l @r15+,r14\n\
11.227 -+ \n\
11.228 -+/*@_init_EPILOG_ENDS*/\n\
11.229 -+\n\
11.230 -+/*@_fini_PROLOG_BEGINS*/\n\
11.231 -+ .section .fini\n\
11.232 -+ .align 5\n\
11.233 -+ .global _fini\n\
11.234 -+ .type _fini,@function\n\
11.235 -+_fini:\n\
11.236 -+ mov.l r12,@-r15\n\
11.237 -+ mov.l r14,@-r15\n\
11.238 -+ sts.l pr,@-r15\n\
11.239 -+#ifdef SHARED\n\
11.240 -+ mova .L27,r0\n\
11.241 -+ mov.l .L27,r12\n\
11.242 -+ add r0,r12\n\
11.243 -+#endif\n\
11.244 -+ mov r15,r14\n\
11.245 -+ ALIGN\n\
11.246 -+ END_FINI\n\
11.247 -+#ifdef SHARED\n\
11.248 -+ bra 1f\n\
11.249 -+ nop\n\
11.250 -+ .align 2\n\
11.251 -+.L27:\n\
11.252 -+ .long _GLOBAL_OFFSET_TABLE_\n\
11.253 -+#endif\n\
11.254 -+1:\n\
11.255 -+/*@_fini_PROLOG_ENDS*/\n\
11.256 -+\n\
11.257 -+/*@_fini_EPILOG_BEGINS*/\n\
11.258 -+ .section .fini\n\
11.259 -+ mov r14,r15\n\
11.260 -+ lds.l @r15+,pr\n\
11.261 -+ mov.l @r15+,r14\n\
11.262 -+ rts \n\
11.263 -+ mov.l @r15+,r12\n\
11.264 -+\n\
11.265 -+ END_FINI\n\
11.266 -+ \n\
11.267 -+/*@_fini_EPILOG_ENDS*/\n\
11.268 -+\n\
11.269 -+/*@TRAILER_BEGINS*/\n\
11.270 - ");
12.1 --- a/patches/glibc/linuxthreads-2.2.5/threadparam.patch Wed Aug 15 16:18:35 2007 +0000
12.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
12.3 @@ -1,69 +0,0 @@
12.4 -2002-05-21 Ulrich Drepper <drepper@redhat.com>
12.5 -
12.6 - * sysdeps/pthread/pthread.h (pthread_create): Rename first parameter.
12.7 - (pthread_cancel): Likewise.
12.8 - * internals.h (__pthread_create_2_1): Likewise.
12.9 - * sysdeps/unix/sysv/linux/bits/sigthread.h (pthread_kill): Likewise.
12.10 -===================================================================
12.11 -RCS file: /cvs/glibc/libc/linuxthreads/internals.h,v
12.12 -retrieving revision 1.69.2.2
12.13 -retrieving revision 1.69.2.3
12.14 -diff -u -r1.69.2.2 -r1.69.2.3
12.15 ---- libc/linuxthreads/internals.h 2002/03/22 08:30:32 1.69.2.2
12.16 -+++ libc/linuxthreads/internals.h 2002/08/20 22:01:25 1.69.2.3
12.17 -@@ -554,7 +554,7 @@
12.18 - /* Prototypes for compatibility functions. */
12.19 - extern int __pthread_attr_init_2_1 (pthread_attr_t *__attr);
12.20 - extern int __pthread_attr_init_2_0 (pthread_attr_t *__attr);
12.21 --extern int __pthread_create_2_1 (pthread_t *__restrict __thread,
12.22 -+extern int __pthread_create_2_1 (pthread_t *__restrict __threadp,
12.23 - const pthread_attr_t *__attr,
12.24 - void *(*__start_routine) (void *),
12.25 - void *__restrict __arg);
12.26 -===================================================================
12.27 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/pthread/pthread.h,v
12.28 -retrieving revision 1.31
12.29 -retrieving revision 1.31.2.1
12.30 -diff -u -r1.31 -r1.31.2.1
12.31 ---- libc/linuxthreads/sysdeps/pthread/pthread.h 2001/03/15 21:12:31 1.31
12.32 -+++ libc/linuxthreads/sysdeps/pthread/pthread.h 2002/08/20 22:01:26 1.31.2.1
12.33 -@@ -160,7 +160,7 @@
12.34 - /* Create a thread with given attributes ATTR (or default attributes
12.35 - if ATTR is NULL), and call function START_ROUTINE with given
12.36 - arguments ARG. */
12.37 --extern int pthread_create (pthread_t *__restrict __thread,
12.38 -+extern int pthread_create (pthread_t *__restrict __threadp,
12.39 - __const pthread_attr_t *__restrict __attr,
12.40 - void *(*__start_routine) (void *),
12.41 - void *__restrict __arg) __THROW;
12.42 -@@ -588,7 +588,7 @@
12.43 - extern int pthread_setcanceltype (int __type, int *__oldtype) __THROW;
12.44 -
12.45 - /* Cancel THREAD immediately or at the next possibility. */
12.46 --extern int pthread_cancel (pthread_t __thread) __THROW;
12.47 -+extern int pthread_cancel (pthread_t __cancelthread) __THROW;
12.48 -
12.49 - /* Test for pending cancellation for the current thread and terminate
12.50 - the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
12.51 -===================================================================
12.52 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h,v
12.53 -retrieving revision 1.5
12.54 -retrieving revision 1.5.2.1
12.55 -diff -u -r1.5 -r1.5.2.1
12.56 ---- libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2000/08/21 06:48:03 1.5
12.57 -+++ libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2002/08/20 22:01:26 1.5.2.1
12.58 -@@ -1,5 +1,5 @@
12.59 - /* Signal handling function for threaded programs.
12.60 -- Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
12.61 -+ Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
12.62 - This file is part of the GNU C Library.
12.63 -
12.64 - The GNU C Library is free software; you can redistribute it and/or
12.65 -@@ -33,6 +33,6 @@
12.66 - __sigset_t *__restrict __oldmask)__THROW;
12.67 -
12.68 - /* Send signal SIGNO to the given thread. */
12.69 --extern int pthread_kill (pthread_t __thread, int __signo) __THROW;
12.70 -+extern int pthread_kill (pthread_t __threadid, int __signo) __THROW;
12.71 -
12.72 - #endif /* bits/sigthread.h */
13.1 --- a/patches/glibc/linuxthreads-2.3.2/alpha_cfi1.patch Wed Aug 15 16:18:35 2007 +0000
13.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
13.3 @@ -1,136 +0,0 @@
13.4 -Retrieved with
13.5 -$ wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S.diff?r1=1.5&r2=1.6&cvsroot=glibc'
13.6 -$ wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h.diff?r1=1.3&r2=1.4&cvsroot=glibc'
13.7 -
13.8 -Might fix problem building with binutils-2.14.90.0.8/gcc-3.3.3 that was not
13.9 -present with binutils-2.13.90.0.18/gcc-3.3.2:
13.10 -
13.11 -../linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S: Assembler messages:
13.12 -../linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S:63: Warning: .ent
13.13 -directive without matching .end
13.14 -../linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S:63: Error: can't resolve
13.15 -`0' {.text section} - `L0^A' {.text section}
13.16 -make[2]: ***
13.17 -[/home/dkegel/wk/crosstool-0.26-pre3/build/alpha-unknown-linux-gnu/gcc-3.3-20040112-glibc-2.3.2/build-glibc/posix/vfork.o]
13.18 -Error 1
13.19 -make[2]: Leaving directory
13.20 -`/home/dkegel/wk/crosstool-0.26-pre3/build/alpha-unknown-linux-gnu/gcc-3.3-20040112-glibc-2.3.2/glibc-2.3.2/posix'
13.21 -make[1]: *** [posix/subdir_lib] Error 2
13.22 -make[1]: Leaving directory
13.23 -`/home/dkegel/wk/crosstool-0.26-pre3/build/alpha-unknown-linux-gnu/gcc-3.3-20040112-glibc-2.3.2/glibc-2.3.2'
13.24 -make: *** [all] Error 2
13.25 -
13.26 -See also alpha_cfi2.patch
13.27 -
13.28 -===================================================================
13.29 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S,v
13.30 -retrieving revision 1.5
13.31 -retrieving revision 1.6
13.32 -diff -u -r1.5 -r1.6
13.33 ---- libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S 2003/02/11 06:27:53 1.5
13.34 -+++ libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S 2003/06/06 05:51:03 1.6
13.35 -@@ -19,12 +19,13 @@
13.36 -
13.37 - #include <sysdep-cancel.h>
13.38 -
13.39 -- .globl __vfork
13.40 - .align 4
13.41 -- .ent __vfork,0
13.42 --__LABEL(__vfork)
13.43 -+ .globl __vfork
13.44 -+ .type __vfork, @function
13.45 -+ .usepv __vfork, std
13.46 -+ cfi_startproc
13.47 -+__vfork:
13.48 - ldgp gp, 0(pv)
13.49 -- .prologue 1
13.50 - PSEUDO_PROF
13.51 -
13.52 - #ifdef SHARED
13.53 -@@ -46,18 +47,24 @@
13.54 - fork and vfork object files. */
13.55 - $do_fork:
13.56 - subq sp, 16, sp
13.57 -+ cfi_adjust_cfa_offset(16)
13.58 - stq ra, 0(sp)
13.59 -+ cfi_offset(ra, -16)
13.60 - jsr ra, HIDDEN_JUMPTARGET (__fork)
13.61 - ldgp gp, 0(ra)
13.62 - ldq ra, 0(sp)
13.63 - addq sp, 16, sp
13.64 -+ cfi_restore(ra)
13.65 -+ cfi_adjust_cfa_offset(-16)
13.66 - ret
13.67 -
13.68 - $syscall_error:
13.69 - SYSCALL_ERROR_HANDLER
13.70 - #endif
13.71 -
13.72 --PSEUDO_END(__vfork)
13.73 -+ cfi_endproc
13.74 -+ .size __vfork, .-__vfork
13.75 -+
13.76 - libc_hidden_def (__vfork)
13.77 -
13.78 - weak_alias (__vfork, vfork)
13.79 -===================================================================
13.80 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h,v
13.81 -retrieving revision 1.3
13.82 -retrieving revision 1.4
13.83 -diff -u -r1.3 -r1.4
13.84 ---- libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h 2003/01/12 19:26:41 1.3
13.85 -+++ libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h 2003/06/06 05:51:03 1.4
13.86 -@@ -40,10 +40,11 @@
13.87 - # define PSEUDO(name, syscall_name, args) \
13.88 - .globl name; \
13.89 - .align 4; \
13.90 -- .ent name, 0; \
13.91 -+ .type name, @function; \
13.92 -+ .usepv name, std; \
13.93 -+ cfi_startproc; \
13.94 - __LABEL(name) \
13.95 - ldgp gp, 0(pv); \
13.96 -- .prologue 1; \
13.97 - PSEUDO_PROF; \
13.98 - PSEUDO_PREPARE_ARGS \
13.99 - SINGLE_THREAD_P(t0); \
13.100 -@@ -55,7 +56,9 @@
13.101 - .subsection 2; \
13.102 - __LABEL($pseudo_cancel) \
13.103 - subq sp, 64, sp; \
13.104 -+ cfi_def_cfa_offset(64); \
13.105 - stq ra, 0(sp); \
13.106 -+ cfi_offset(ra, -64); \
13.107 - SAVE_ARGS_##args; \
13.108 - CENABLE; \
13.109 - LOAD_ARGS_##args; \
13.110 -@@ -67,19 +70,27 @@
13.111 - ldq ra, 0(sp); \
13.112 - ldq v0, 8(sp); \
13.113 - addq sp, 64, sp; \
13.114 -+ cfi_remember_state; \
13.115 -+ cfi_restore(ra); \
13.116 -+ cfi_def_cfa_offset(0); \
13.117 - ret; \
13.118 -+ cfi_restore_state; \
13.119 - __LABEL($multi_error) \
13.120 - CDISABLE; \
13.121 - ldq ra, 0(sp); \
13.122 - ldq v0, 8(sp); \
13.123 - addq sp, 64, sp; \
13.124 -+ cfi_restore(ra); \
13.125 -+ cfi_def_cfa_offset(0); \
13.126 - __LABEL($syscall_error) \
13.127 - SYSCALL_ERROR_HANDLER; \
13.128 -- END(name); \
13.129 - .previous
13.130 -
13.131 - # undef PSEUDO_END
13.132 --# define PSEUDO_END(sym)
13.133 -+# define PSEUDO_END(sym) \
13.134 -+ .subsection 2; \
13.135 -+ cfi_endproc; \
13.136 -+ .size sym, .-sym
13.137 -
13.138 - # define SAVE_ARGS_0 /* Nothing. */
13.139 - # define SAVE_ARGS_1 SAVE_ARGS_0; stq a0, 8(sp)
14.1 --- a/patches/glibc/linuxthreads-2.3.2/alpha_cfi2.patch Wed Aug 15 16:18:35 2007 +0000
14.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
14.3 @@ -1,118 +0,0 @@
14.4 -See http://sources.redhat.com/ml/libc-alpha/2004-05/msg00110.html
14.5 -
14.6 -Both his patches pulled into this file
14.7 -
14.8 -Should fix
14.9 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Assembler messages:
14.10 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_startproc'
14.11 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_def_cfa_offset'
14.12 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: missing ')'
14.13 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: syntax error
14.14 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_remember_state'
14.15 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_restore'
14.16 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_def_cfa_offset'
14.17 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_restore_state'
14.18 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_restore'
14.19 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_def_cfa_offset'
14.20 -../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:30: Error: unknown opcode `cfi_endproc'
14.21 -make[2]: *** [/usr/src/crosstool/crosstool-0.28-rc14/build/alpha-linux/gcc-3.4.0-glibc-2.3.2/build-glibc/signal/sigsuspend.o] Error 1
14.22 -
14.23 -when building with binutils-2.15.90.0.3 and gcc-3.4.0
14.24 -
14.25 ---- glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h.orig 2004-05-13 00:33:54.000000000 -0400
14.26 -+++ glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h 2004-05-13 00:34:19.000000000 -0400
14.27 -@@ -42,7 +42,7 @@
14.28 - .align 4; \
14.29 - .type name, @function; \
14.30 - .usepv name, std; \
14.31 -- cfi_startproc; \
14.32 -+ .cfi_startproc; \
14.33 - __LABEL(name) \
14.34 - ldgp gp, 0(pv); \
14.35 - PSEUDO_PROF; \
14.36 -@@ -56,9 +56,9 @@
14.37 - .subsection 2; \
14.38 - __LABEL($pseudo_cancel) \
14.39 - subq sp, 64, sp; \
14.40 -- cfi_def_cfa_offset(64); \
14.41 -+ .cfi_def_cfa_offset(64); \
14.42 - stq ra, 0(sp); \
14.43 -- cfi_offset(ra, -64); \
14.44 -+ .cfi_offset ra, -64; \
14.45 - SAVE_ARGS_##args; \
14.46 - CENABLE; \
14.47 - LOAD_ARGS_##args; \
14.48 -@@ -70,18 +70,18 @@
14.49 - ldq ra, 0(sp); \
14.50 - ldq v0, 8(sp); \
14.51 - addq sp, 64, sp; \
14.52 -- cfi_remember_state; \
14.53 -- cfi_restore(ra); \
14.54 -- cfi_def_cfa_offset(0); \
14.55 -+ .cfi_remember_state; \
14.56 -+ .cfi_restore(ra); \
14.57 -+ .cfi_def_cfa_offset(0); \
14.58 - ret; \
14.59 -- cfi_restore_state; \
14.60 -+ .cfi_restore_state; \
14.61 - __LABEL($multi_error) \
14.62 - CDISABLE; \
14.63 - ldq ra, 0(sp); \
14.64 - ldq v0, 8(sp); \
14.65 - addq sp, 64, sp; \
14.66 -- cfi_restore(ra); \
14.67 -- cfi_def_cfa_offset(0); \
14.68 -+ .cfi_restore(ra); \
14.69 -+ .cfi_def_cfa_offset(0); \
14.70 - __LABEL($syscall_error) \
14.71 - SYSCALL_ERROR_HANDLER; \
14.72 - .previous
14.73 -@@ -89,7 +89,7 @@
14.74 - # undef PSEUDO_END
14.75 - # define PSEUDO_END(sym) \
14.76 - .subsection 2; \
14.77 -- cfi_endproc; \
14.78 -+ .cfi_endproc; \
14.79 - .size sym, .-sym
14.80 -
14.81 - # define SAVE_ARGS_0 /* Nothing. */
14.82 -
14.83 ---- glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S.orig 2004-05-13 01:47:46.000000000 -0400
14.84 -+++ glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S 2004-05-13 01:48:17.000000000 -0400
14.85 -@@ -23,7 +23,7 @@
14.86 - .globl __vfork
14.87 - .type __vfork, @function
14.88 - .usepv __vfork, std
14.89 -- cfi_startproc
14.90 -+ .cfi_startproc
14.91 - __vfork:
14.92 - ldgp gp, 0(pv)
14.93 - PSEUDO_PROF
14.94 -@@ -47,22 +47,22 @@
14.95 - fork and vfork object files. */
14.96 - $do_fork:
14.97 - subq sp, 16, sp
14.98 -- cfi_adjust_cfa_offset(16)
14.99 -+ .cfi_adjust_cfa_offset(16)
14.100 - stq ra, 0(sp)
14.101 -- cfi_offset(ra, -16)
14.102 -+ .cfi_offset ra, -16
14.103 - jsr ra, HIDDEN_JUMPTARGET (__fork)
14.104 - ldgp gp, 0(ra)
14.105 - ldq ra, 0(sp)
14.106 - addq sp, 16, sp
14.107 -- cfi_restore(ra)
14.108 -- cfi_adjust_cfa_offset(-16)
14.109 -+ .cfi_restore(ra)
14.110 -+ .cfi_adjust_cfa_offset(-16)
14.111 - ret
14.112 -
14.113 - $syscall_error:
14.114 - SYSCALL_ERROR_HANDLER
14.115 - #endif
14.116 -
14.117 -- cfi_endproc
14.118 -+ .cfi_endproc
14.119 - .size __vfork, .-__vfork
14.120 -
14.121 - libc_hidden_def (__vfork)
15.1 --- a/patches/glibc/linuxthreads-2.3.2/glibc-2.3.2-sparc64-sigproc.patch Wed Aug 15 16:18:35 2007 +0000
15.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
15.3 @@ -1,26 +0,0 @@
15.4 -From: "M.H.VanLeeuwen"
15.5 -Subject: crosstool, sparc64, linux 2.6.4, gcc 3.3.3, glibc 2.3.2 success
15.6 -Date: Mon, 15 Mar 2004 00:23:04 -0600
15.7 -To: crossgcc@sources.redhat.com
15.8 -Message-ID: <40554BC8.749A5EC3@megsinet.net>
15.9 -...
15.10 -
15.11 -backported from GLIBC CVS
15.12 -
15.13 -Fix this error:
15.14 -
15.15 -/cross/crosstool-0.27/build/sparc64-unknown-linux-gnu/gcc-3.3.3-glibc-2.3.2/build-glibc/linuxthreads/libpthread_pic.a(ptw-pause.os)(.text+0x2c): In function `pause':
15.16 -: undefined reference to `__sigprocmask'
15.17 -collect2: ld returned 1 exit status
15.18 -make[2]: *** [/cross/crosstool-0.27/build/sparc64-unknown-linux-gnu/gcc-3.3.3-glibc-2.3.2/build-glibc/linuxthreads/libpthread.so] Error 1
15.19 -
15.20 -
15.21 ---- /cross/sources/glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile Wed Dec 31 18:00:00 1969
15.22 -+++ glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile Sat Mar 13 10:18:43 2004
15.23 -@@ -0,0 +1,5 @@
15.24 -+# glibc makefile fragment for linuxthreads on sparc/sparc64.
15.25 -+
15.26 -+ifeq ($(subdir),linuxthreads)
15.27 -+libpthread-routines += ptw-sigprocmask
15.28 -+endif
15.29 -
16.1 --- a/patches/glibc/linuxthreads-2.3.2/glibc-linuxthreads-2.3.2-allow-3.4.patch Wed Aug 15 16:18:35 2007 +0000
16.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
16.3 @@ -1,100 +0,0 @@
16.4 -[ Revised; now also changes CFLAGS-pt-initfini.s as suggested by
16.5 - http://sources.redhat.com/ml/crossgcc/2004-07/msg00169.html
16.6 - to not crash when building a debug glibc on mips ]
16.7 -
16.8 -Fixes errors like
16.9 -
16.10 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.o(.text+0x0):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.S:20: multiple definition of `dummy'
16.11 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crti.o(.text+0x0):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crti.S:42: first defined here
16.12 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.o(.text+0x18):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.S:37: multiple definition of `_init'
16.13 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crti.o(.text+0x30):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crti.S:76: first defined here
16.14 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.o(.init+0x1c):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.S:86: multiple definition of `_fini'
16.15 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crti.o(.init+0x10):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crti.S:48: first defined here
16.16 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crti.o(.init+0x28):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crti.S:58: undefined reference to `i_am_not_a_leaf'
16.17 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.o(.init+0x4c):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.S:108: undefined reference to `i_am_not_a_leaf'
16.18 -mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.o(.init+0x50):build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/crtn.S:109: undefined reference to `i_am_not_a_leaf'
16.19 -collect2: ld returned 1 exit status
16.20 -make[2]: *** [build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/libpthread.so] Error 1
16.21 -make[2]: Leaving directory `build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/glibc-2.3.2/linuxthreads'
16.22 -make[1]: *** [linuxthreads/others] Error 2
16.23 -make[1]: Leaving directory `build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/glibc-2.3.2'
16.24 -make: *** [all] Error 2
16.25 -
16.26 -
16.27 -CVSROOT: /cvs/glibc
16.28 -Module name: libc
16.29 -Changes by: aj@sourceware.org 2003-12-02 07:37:29
16.30 -
16.31 -Modified files:
16.32 - . : configure.in configure config.make.in
16.33 - csu : Makefile
16.34 - locale : Makefile
16.35 - linuxthreads : Makefile
16.36 - linuxthreads/sysdeps/unix/sysv/linux/x86_64: Makefile
16.37 - nptl : Makefile
16.38 - nptl/sysdeps/unix/sysv/linux/x86_64: Makefile
16.39 -
16.40 -Log message:
16.41 - * config.make.in (fno-unit-at-a-time): Define.
16.42 -
16.43 - * configure.in: Add test for -fno-unit-at-a-time.
16.44 - Fix text for -fpie.
16.45 -
16.46 - * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
16.47 - * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
16.48 -
16.49 - For linuxthreads:
16.50 - * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
16.51 - * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
16.52 - Likewise.
16.53 -
16.54 - For nptl:
16.55 - * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
16.56 - * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
16.57 - Likewise.
16.58 -
16.59 -linuxthreads change retrieved with
16.60 -wget -O foo.patch 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/Makefile.diff?r1=1.83&r2=1.84&cvsroot=glibc' \
16.61 -'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile.diff?r1=1.5&r2=1.6&cvsroot=glibc'
16.62 -
16.63 -and then rediffed against glibc-2.3.2
16.64 -And then extended to mips...
16.65 -
16.66 -===================================================================
16.67 -RCS file: /cvs/glibc/libc/linuxthreads/Makefile,v
16.68 -retrieving revision 1.83
16.69 -retrieving revision 1.84
16.70 -diff -u -r1.83 -r1.84
16.71 ---- libc/linuxthreads/Makefile 2003/10/02 18:48:48 1.83
16.72 -+++ libc/linuxthreads/Makefile 2003/12/02 07:37:28 1.84
16.73 -@@ -101,7 +101,7 @@
16.74 - extra-objs += $(crti-objs) $(crtn-objs)
16.75 - omit-deps += crti crtn
16.76 -
16.77 --CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions
16.78 -+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
16.79 - endif
16.80 -
16.81 - librt-tests = ex10 ex11
16.82 -===================================================================
16.83 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile,v
16.84 -retrieving revision 1.5
16.85 -retrieving revision 1.6
16.86 -diff -u -r1.5 -r1.6
16.87 ---- libc/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile 2003/04/11 23:34:02 1.5
16.88 -+++ libc/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile 2003/12/02 07:37:28 1.6
16.89 -@@ -1,3 +1,4 @@
16.90 - ifeq ($(subdir),linuxthreads)
16.91 --CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions -fno-asynchronous-unwind-tables
16.92 -+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions \
16.93 -+ -fno-asynchronous-unwind-tables $(fno-unit-at-a-time)
16.94 - endif
16.95 ---- glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/mips/Makefile.old 2004-05-30 18:24:41.000000000 -0700
16.96 -+++ glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/mips/Makefile 2004-05-30 18:28:03.000000000 -0700
16.97 -@@ -1,2 +1,6 @@
16.98 - # pull in __syscall_error routine
16.99 - libpthread-routines += sysdep
16.100 -+
16.101 -+ifeq ($(subdir),linuxthreads)
16.102 -+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
16.103 -+endif
17.1 --- a/patches/glibc/linuxthreads-2.3.2/glibc-linuxthreads-2.3.2-cygwin.patch Wed Aug 15 16:18:35 2007 +0000
17.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
17.3 @@ -1,30 +0,0 @@
17.4 -Goes with ../glibc-2.3.2/glibc-2.3.2-cygwin.patch
17.5 -
17.6 -If you apply the above patch, but forget this one, you get a cryptic error
17.7 - .../bin/../x86_64-unknown-linux-gnu/sys-root/usr/lib64/: file not recognized: Is a directory
17.8 -when linking with -lpthread, because the generated libpthread.so
17.9 -is missing a filename
17.10 -
17.11 -by dank@kegel.com, 2004 Mar 30
17.12 -
17.13 -
17.14 ---- glibc-linuxthreads-2.3.2/linuxthreads/Makefile.old Tue Mar 30 10:33:12 2004
17.15 -+++ glibc-linuxthreads-2.3.2/linuxthreads/Makefile Tue Mar 30 10:33:24 2004
17.16 -@@ -114,7 +114,7 @@
17.17 - install: $(inst_libdir)/libpthread.so
17.18 - $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
17.19 - $(objpfx)libpthread.so$(libpthread.so-version) \
17.20 -- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
17.21 -+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
17.22 - $(libprefix)pthread) \
17.23 - $(+force)
17.24 - (echo '/* GNU ld script';\
17.25 -@@ -122,7 +122,7 @@
17.26 - echo ' the static library, so try that secondarily. */';\
17.27 - cat $<; \
17.28 - echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
17.29 -- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
17.30 -+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
17.31 - ')' \
17.32 - ) > $@.new
17.33 - mv -f $@.new $@
18.1 --- a/patches/glibc/linuxthreads-2.3.2/sysdep-cancel-arm-1.2-1.6.patch Wed Aug 15 16:18:35 2007 +0000
18.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
18.3 @@ -1,53 +0,0 @@
18.4 -I haven't built glibc-2.3.2 for arm myself, but
18.5 -http://sources.redhat.com/ml/bug-glibc/2003-05/msg00076.html and
18.6 -http://www.linux.org.uk/pipermail/linux-arm/2003-November/006560.html
18.7 -give me the distinct impression that you need the latest sysdep-cancel.h from
18.8 -cvs.
18.9 -
18.10 -Retrieved with
18.11 -
18.12 -http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h.diff?cvsroot=glibc&r1=text&tr1=1.2&r2=text&tr2=1.6&f=u
18.13 -
18.14 -===================================================================
18.15 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h,v
18.16 -retrieving revision 1.2
18.17 -retrieving revision 1.6
18.18 -diff -u -r1.2 -r1.6
18.19 ---- libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h 2003/01/12 09:14:25 1.2
18.20 -+++ libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h 2003/06/06 17:31:40 1.6
18.21 -@@ -24,6 +24,17 @@
18.22 -
18.23 - #if !defined NOT_IN_libc || defined IS_IN_libpthread
18.24 -
18.25 -+/* We push lr onto the stack, so we have to use ldmib instead of ldmia
18.26 -+ to find the saved arguments. */
18.27 -+# ifdef PIC
18.28 -+# undef DOARGS_5
18.29 -+# undef DOARGS_6
18.30 -+# undef DOARGS_7
18.31 -+# define DOARGS_5 str r4, [sp, $-4]!; ldr r4, [sp, $8];
18.32 -+# define DOARGS_6 mov ip, sp; stmfd sp!, {r4, r5}; ldmib ip, {r4, r5};
18.33 -+# define DOARGS_7 mov ip, sp; stmfd sp!, {r4, r5, r6}; ldmib ip, {r4, r5, r6};
18.34 -+# endif
18.35 -+
18.36 - # undef PSEUDO_RET
18.37 - # define PSEUDO_RET \
18.38 - ldrcc pc, [sp], $4; \
18.39 -@@ -34,7 +45,7 @@
18.40 - # define PSEUDO(name, syscall_name, args) \
18.41 - .section ".text"; \
18.42 - PSEUDO_PROLOGUE; \
18.43 -- ENTRY (name) \
18.44 -+ ENTRY (name); \
18.45 - SINGLE_THREAD_P_INT; \
18.46 - bne .Lpseudo_cancel; \
18.47 - DO_CALL (syscall_name, args); \
18.48 -@@ -110,7 +121,7 @@
18.49 - ldr reg, 2b; \
18.50 - 3: \
18.51 - add ip, pc, ip; \
18.52 -- ldr ip, [ip, lr]; \
18.53 -+ ldr ip, [ip, reg]; \
18.54 - teq ip, #0;
18.55 - # define SINGLE_THREAD_P_INT \
18.56 - str lr, [sp, $-4]!; \
19.1 --- a/patches/glibc/linuxthreads-2.3.3/glibc-2.3.3-alpha-prolog.patch Wed Aug 15 16:18:35 2007 +0000
19.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
19.3 @@ -1,36 +0,0 @@
19.4 -wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/alpha/elf/pt-initfini.c.diff?r1=1.3&r2=1.4&cvsroot=glibc'
19.5 -
19.6 -Revision 1.4, Wed Dec 10 05:46:41 2003 UTC (8 months, 1 week ago) by aj
19.7 - (__asm__): Remove extra .prologue.
19.8 -
19.9 -Fixes error
19.10 -
19.11 -crosstool-0.28-rc34/build/alpha-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/build-glibc/linuxthreads/crti.S: Assembler messages:
19.12 -crosstool-0.28-rc34/build/alpha-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/build-glibc/linuxthreads/crti.S:34: Error: .prologue directive without a preceding .ent directive
19.13 -make[2]: *** [crosstool-0.28-rc34/build/alpha-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/build-glibc/linuxthreads/crti.o] Error 1
19.14 -make[2]: Leaving directory `crosstool-0.28-rc34/build/alpha-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/glibc-2.3.3/linuxthreads'
19.15 -
19.16 -when building with gcc-3.4.1
19.17 -
19.18 -===================================================================
19.19 -RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/alpha/elf/pt-initfini.c,v
19.20 -retrieving revision 1.3
19.21 -retrieving revision 1.4
19.22 -diff -u -r1.3 -r1.4
19.23 ---- libc/linuxthreads/sysdeps/alpha/elf/pt-initfini.c 2003/07/05 22:56:39 1.3
19.24 -+++ libc/linuxthreads/sysdeps/alpha/elf/pt-initfini.c 2003/12/10 05:46:41 1.4
19.25 -@@ -1,5 +1,5 @@
19.26 - /* Special .init and .fini section support for Alpha. Linuxthreads version.
19.27 -- Copyright (C) 2002 Free Software Foundation, Inc.
19.28 -+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
19.29 - This file is part of the GNU C Library.
19.30 -
19.31 - The GNU C Library is free software; you can redistribute it and/or
19.32 -@@ -75,7 +75,6 @@
19.33 - subq $30, 16, $30 \n\
19.34 - stq $26, 0($30) \n\
19.35 - stq $29, 8($30) \n\
19.36 -- .prologue 1 \n\
19.37 - .align 3 \n\
19.38 - /*@_fini_PROLOG_ENDS*/ \n\
19.39 - \n\
20.1 --- a/patches/glibc/linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch Wed Aug 15 16:18:35 2007 +0000
20.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
20.3 @@ -1,38 +0,0 @@
20.4 -Fixes
20.5 -elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
20.6 -...
20.7 -when building glibc-2.3.3 on cygwin
20.8 -
20.9 -Idea from
20.10 -http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
20.11 -Basically, make glibc use .oST as suffix for 'object static'
20.12 -instead of .oS, since cygwin has trouble distinguishing .os from .oS
20.13 -(Original patch had .on, but .oST is more mnemonic for 'object static')
20.14 -
20.15 -glibc-linuxthreads-2.3.3 also requires a patch, see
20.16 -../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
20.17 -
20.18 -[ rediffed against glibc-2.3.3 ]
20.19 -
20.20 -
20.21 -diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile
20.22 ---- glibc-linuxthreads-2.3.3/linuxthreads/Makefile 2004-08-27 20:38:40.000000000 -0700
20.23 -+++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile 2003-10-02 11:48:48.000000000 -0700
20.24 -@@ -156,7 +156,7 @@
20.25 - install: $(inst_libdir)/libpthread.so
20.26 - $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
20.27 - $(objpfx)libpthread.so$(libpthread.so-version) \
20.28 -- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
20.29 -+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
20.30 - $(libprefix)pthread) \
20.31 - $(+force)
20.32 - (echo '/* GNU ld script';\
20.33 -@@ -164,7 +164,7 @@
20.34 - echo ' the static library, so try that secondarily. */';\
20.35 - cat $<; \
20.36 - echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
20.37 -- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
20.38 -+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
20.39 - ')' \
20.40 - ) > $@.new
20.41 - mv -f $@.new $@
21.1 --- a/patches/glibc/linuxthreads-2.3.4/glibc-linuxthreads-2.3.3-cygwin.patch Wed Aug 15 16:18:35 2007 +0000
21.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
21.3 @@ -1,38 +0,0 @@
21.4 -Fixes
21.5 -elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
21.6 -...
21.7 -when building glibc-2.3.3 on cygwin
21.8 -
21.9 -Idea from
21.10 -http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
21.11 -Basically, make glibc use .oST as suffix for 'object static'
21.12 -instead of .oS, since cygwin has trouble distinguishing .os from .oS
21.13 -(Original patch had .on, but .oST is more mnemonic for 'object static')
21.14 -
21.15 -glibc-linuxthreads-2.3.3 also requires a patch, see
21.16 -../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
21.17 -
21.18 -[ rediffed against glibc-2.3.3 ]
21.19 -
21.20 -
21.21 -diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile
21.22 ---- glibc-linuxthreads-2.3.3/linuxthreads/Makefile 2004-08-27 20:38:40.000000000 -0700
21.23 -+++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile 2003-10-02 11:48:48.000000000 -0700
21.24 -@@ -156,7 +156,7 @@
21.25 - install: $(inst_libdir)/libpthread.so
21.26 - $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
21.27 - $(objpfx)libpthread.so$(libpthread.so-version) \
21.28 -- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
21.29 -+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
21.30 - $(libprefix)pthread) \
21.31 - $(+force)
21.32 - (echo '/* GNU ld script';\
21.33 -@@ -164,7 +164,7 @@
21.34 - echo ' the static library, so try that secondarily. */';\
21.35 - cat $<; \
21.36 - echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
21.37 -- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
21.38 -+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
21.39 - ')' \
21.40 - ) > $@.new
21.41 - mv -f $@.new $@
22.1 --- a/patches/glibc/linuxthreads-2.3.4/glibc-linuxthreads-2.3.4-allow-gcc-4.0-rtld.patch Wed Aug 15 16:18:35 2007 +0000
22.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
22.3 @@ -1,89 +0,0 @@
22.4 -See http://sources.redhat.com/ml/libc-hacker/2005-03/msg00008.html
22.5 -
22.6 -From libc-hacker-return-8343-listarch-libc-hacker=sources dot redhat dot com at sources dot redhat dot com Sat Mar 05 09:21:18 2005
22.7 -Return-Path: <libc-hacker-return-8343-listarch-libc-hacker=sources dot redhat dot com at sources dot redhat dot com>
22.8 -Delivered-To: listarch-libc-hacker at sources dot redhat dot com
22.9 -Received: (qmail 23370 invoked by alias); 5 Mar 2005 09:21:15 -0000
22.10 -Mailing-List: contact libc-hacker-help at sources dot redhat dot com; run by ezmlm
22.11 -Precedence: bulk
22.12 -List-Subscribe: <mailto:libc-hacker-subscribe at sources dot redhat dot com>
22.13 -List-Archive: <http://sources.redhat.com/ml/libc-hacker/>
22.14 -List-Post: <mailto:libc-hacker at sources dot redhat dot com>
22.15 -List-Help: <mailto:libc-hacker-help at sources dot redhat dot com>, <http://sources dot redhat dot com/ml/#faqs>
22.16 -Sender: libc-hacker-owner at sources dot redhat dot com
22.17 -Delivered-To: mailing list libc-hacker at sources dot redhat dot com
22.18 -Received: (qmail 22971 invoked from network); 5 Mar 2005 09:20:51 -0000
22.19 -Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.15.26)
22.20 - by sourceware dot org with SMTP; 5 Mar 2005 09:20:51 -0000
22.21 -Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1])
22.22 - by sunsite dot mff dot cuni dot cz (8 dot 13 dot 1/8 dot 13 dot 1) with ESMTP id j259KoB5020894;
22.23 - Sat, 5 Mar 2005 10:20:50 +0100
22.24 -Received: (from jj@localhost)
22.25 - by sunsite dot mff dot cuni dot cz (8 dot 13 dot 1/8 dot 13 dot 1/Submit) id j259KnO1020889;
22.26 - Sat, 5 Mar 2005 10:20:49 +0100
22.27 -Date: Sat, 5 Mar 2005 10:20:49 +0100
22.28 -From: Jakub Jelinek <jakub at redhat dot com>
22.29 -To: Ulrich Drepper <drepper at redhat dot com>, Roland McGrath <roland at redhat dot com>
22.30 -Cc: Glibc hackers <libc-hacker at sources dot redhat dot com>
22.31 -Subject: [PATCH] Fix build with GCC 4
22.32 -Message-ID: <20050305092049.GJ4777@sunsite.mff.cuni.cz>
22.33 -Reply-To: Jakub Jelinek <jakub at redhat dot com>
22.34 -Mime-Version: 1.0
22.35 -Content-Type: text/plain; charset=us-ascii
22.36 -Content-Disposition: inline
22.37 -User-Agent: Mutt/1.4.1i
22.38 -
22.39 -Hi!
22.40 -
22.41 -The thread_offsetof change just mirrors what Alan Modra did to NPTL
22.42 -tcb-offsets.sym. Apparently for GCC 4 an offsetof like expression,
22.43 -but not really offsetof, is no longer constant folded and therefore
22.44 -not suitable for "i" constraint.
22.45 -
22.46 -The ELF_MACHINE_NO_RELA change is needed to avoid
22.47 -rtld.c: In function '_dl_start':
22.48 -dynamic-link.h:50: error: nested function 'elf_machine_rela_relative' declared but never defined
22.49 -dynamic-link.h:47: error: nested function 'elf_machine_rela' declared but never defined
22.50 -This is what happens.
22.51 -rtld.c first includes dl-machine.h without RESOLVE_MAP
22.52 -and without RTLD_BOOTSTRAP defined. This means that ELF_MACHINE_NO_RELA
22.53 -is not defined on i386/arm. Later on it defines RESOLVE_MAP
22.54 -and RTLD_BOOTSTRAP and includes dynamic-link.h which has:
22.55 -# if ! ELF_MACHINE_NO_RELA
22.56 -auto void __attribute__((always_inline))
22.57 -elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
22.58 - const ElfW(Sym) *sym, const struct r_found_version *version,
22.59 - void *const reloc_addr);
22.60 -auto void __attribute__((always_inline))
22.61 -elf_machine_rela_relative (ElfW(Addr) l_addr, const ElfW(Rela) *reloc,
22.62 - void *const reloc_addr);
22.63 -# endif
22.64 -and later on includes dl-machine.h which sees RTLD_BOOTSTRAP is
22.65 -defined and defines ELF_MACHINE_NO_RELA and doesn't define
22.66 -elf_machine_rela* nested functions.
22.67 -But the prototypes were already defined and GCC 4 doesn't like this.
22.68 -ELF_MACHINE_NO_RELA is only ever used in preprocessing conditionals
22.69 -and never in defined ELF_MACHINE_NO_RELA, so the trick below
22.70 -already defines ELF_MACHINE_NO_RELA to 1/0 depending on whether
22.71 -RTLD_BOOTSTRAP is defined and thus the prototypes in dynamic-link.h
22.72 -that are not desirable are gone.
22.73 -
22.74 -2005-03-05 Jakub Jelinek <jakub@redhat.com>
22.75 -
22.76 - * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
22.77 - unconditionally to (defined RTLD_BOOTSTRAP).
22.78 - * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
22.79 -linuxthreads/
22.80 - * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Rework for GCC 4.
22.81 -
22.82 ---- libc/linuxthreads/sysdeps/powerpc/tcb-offsets.sym.jj 2005-03-04 14:21:29.000000000 -0500
22.83 -+++ libc/linuxthreads/sysdeps/powerpc/tcb-offsets.sym 2005-03-04 14:26:29.000000000 -0500
22.84 -@@ -8,7 +8,7 @@
22.85 - -- Abuse tls.h macros to derive offsets relative to the thread register.
22.86 - # undef __thread_register
22.87 - # define __thread_register ((void *) 0)
22.88 --# define thread_offsetof(mem) ((void *) &THREAD_SELF->p_##mem - (void *) 0)
22.89 -+# define thread_offsetof(mem) ((ptrdiff_t) THREAD_SELF + offsetof (struct _pthread_descr_struct, p_##mem))
22.90 -
22.91 - # else
22.92 -
23.1 --- a/patches/glibc/linuxthreads-2.3.5/glibc-linuxthreads-2.3.5-cygwin.patch Wed Aug 15 16:18:35 2007 +0000
23.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
23.3 @@ -1,37 +0,0 @@
23.4 -Fixes
23.5 -elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
23.6 -...
23.7 -when building glibc-2.3.3 on cygwin
23.8 -
23.9 -Idea from
23.10 -http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
23.11 -Basically, make glibc use .oST as suffix for 'object static'
23.12 -instead of .oS, since cygwin has trouble distinguishing .os from .oS
23.13 -(Original patch had .on, but .oST is more mnemonic for 'object static')
23.14 -
23.15 -glibc-linuxthreads-2.3.3 also requires a patch, see
23.16 -../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
23.17 -
23.18 -[ rediffed against glibc-2.3.5 ]
23.19 -
23.20 -diff -aur glibc-2.3.5/linuxthreads/Makefile glibc-2.3.5-cygwin/linuxthreads/Makefile
23.21 ---- glibc-2.3.5/linuxthreads/Makefile 2005-02-16 12:26:38.000000000 +0100
23.22 -+++ glibc-2.3.5-cygwin/linuxthreads/Makefile 2005-05-11 08:32:50.453125000 +0200
23.23 -@@ -159,7 +159,7 @@
23.24 - install: $(inst_libdir)/libpthread.so
23.25 - $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
23.26 - $(objpfx)libpthread.so$(libpthread.so-version) \
23.27 -- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
23.28 -+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
23.29 - $(libprefix)pthread) \
23.30 - $(+force)
23.31 - (echo '/* GNU ld script';\
23.32 -@@ -167,7 +167,7 @@
23.33 - echo ' the static library, so try that secondarily. */';\
23.34 - cat $<; \
23.35 - echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
23.36 -- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
23.37 -+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
23.38 - ')' \
23.39 - ) > $@.new
23.40 - mv -f $@.new $@
24.1 --- a/patches/glibc/linuxthreads-20040827/glibc-linuxthreads-2.3.3-cygwin.patch Wed Aug 15 16:18:35 2007 +0000
24.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
24.3 @@ -1,38 +0,0 @@
24.4 -Fixes
24.5 -elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
24.6 -...
24.7 -when building glibc-2.3.3 on cygwin
24.8 -
24.9 -Idea from
24.10 -http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
24.11 -Basically, make glibc use .oST as suffix for 'object static'
24.12 -instead of .oS, since cygwin has trouble distinguishing .os from .oS
24.13 -(Original patch had .on, but .oST is more mnemonic for 'object static')
24.14 -
24.15 -glibc-linuxthreads-2.3.3 also requires a patch, see
24.16 -../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
24.17 -
24.18 -[ rediffed against glibc-2.3.3 ]
24.19 -
24.20 -
24.21 -diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile
24.22 ---- glibc-linuxthreads-2.3.3/linuxthreads/Makefile 2004-08-27 20:38:40.000000000 -0700
24.23 -+++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile 2003-10-02 11:48:48.000000000 -0700
24.24 -@@ -156,7 +156,7 @@
24.25 - install: $(inst_libdir)/libpthread.so
24.26 - $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
24.27 - $(objpfx)libpthread.so$(libpthread.so-version) \
24.28 -- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
24.29 -+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
24.30 - $(libprefix)pthread) \
24.31 - $(+force)
24.32 - (echo '/* GNU ld script';\
24.33 -@@ -164,7 +164,7 @@
24.34 - echo ' the static library, so try that secondarily. */';\
24.35 - cat $<; \
24.36 - echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
24.37 -- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
24.38 -+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
24.39 - ')' \
24.40 - ) > $@.new
24.41 - mv -f $@.new $@