mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 21:57:48 +00:00
Remove dead linuxthreads patches.
This commit is contained in:
parent
09f0dcc66f
commit
713cddab0f
@ -1,33 +0,0 @@
|
|||||||
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/pthread/pthread.h.diff?r1=1.31&r2=1.32&cvsroot=glibc
|
|
||||||
|
|
||||||
Fixes
|
|
||||||
../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "__thread"
|
|
||||||
../linuxthreads/sysdeps/pthread/pthread.h:141: error: `pthread_create' declared as function returning a function
|
|
||||||
../linuxthreads/sysdeps/pthread/pthread.h:141: warning: function declaration isn't a prototype
|
|
||||||
../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "void"
|
|
||||||
../linuxthreads/sysdeps/pthread/pthread.h:462: error: storage class specified for parameter `type name'
|
|
||||||
|
|
||||||
when compiling with gcc3.x
|
|
||||||
|
|
||||||
Rediffed against glibc-2.1.3
|
|
||||||
|
|
||||||
--- glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h.orig 2000-01-20 17:40:19.000000000 -0800
|
|
||||||
+++ glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h 2004-03-04 15:56:43.000000000 -0800
|
|
||||||
@@ -138,7 +138,7 @@
|
|
||||||
/* Create a thread with given attributes ATTR (or default attributes
|
|
||||||
if ATTR is NULL), and call function START_ROUTINE with given
|
|
||||||
arguments ARG. */
|
|
||||||
-extern int pthread_create __P ((pthread_t *__thread,
|
|
||||||
+extern int pthread_create __P ((pthread_t *__threadp,
|
|
||||||
__const pthread_attr_t *__attr,
|
|
||||||
void *(*__start_routine) (void *),
|
|
||||||
void *__arg));
|
|
||||||
@@ -459,7 +459,7 @@
|
|
||||||
extern int pthread_setcanceltype __P ((int __type, int *__oldtype));
|
|
||||||
|
|
||||||
/* Cancel THREAD immediately or at the next possibility. */
|
|
||||||
-extern int pthread_cancel __P ((pthread_t __thread));
|
|
||||||
+extern int pthread_cancel __P ((pthread_t __cancelthread));
|
|
||||||
|
|
||||||
/* Test for pending cancellation for the current thread and terminate
|
|
||||||
the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
|
|
@ -1,18 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
Fixes
|
|
||||||
|
|
||||||
../linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h:35: error: storage class specified for parameter `type name'
|
|
||||||
|
|
||||||
Rediffed to match glibc-2.1.3
|
|
||||||
|
|
||||||
--- glibc-2.1.3/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h.orig 1998-09-12 14:33:14.000000000 -0700
|
|
||||||
+++ glibc-2.1.3/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2004-03-04 15:50:30.000000000 -0800
|
|
||||||
@@ -32,6 +32,6 @@
|
|
||||||
__sigset_t *__oldmask));
|
|
||||||
|
|
||||||
/* Send signal SIGNO to the given thread. */
|
|
||||||
-extern int pthread_kill __P ((pthread_t __thread, int __signo));
|
|
||||||
+extern int pthread_kill __P ((pthread_t __threadid, int __signo));
|
|
||||||
|
|
||||||
#endif /* bits/sigthread.h */
|
|
@ -1,16 +0,0 @@
|
|||||||
2000-08-03 Ulrich Drepper <drepper@redhat.com>
|
|
||||||
|
|
||||||
* pthread.c (__pthread_set_own_extricate_if): Remove locking.
|
|
||||||
|
|
||||||
--- glibc-2.1.3/linuxthreads/pthread.c.jj Wed Mar 22 22:26:01 2000
|
|
||||||
+++ glibc-2.1.3/linuxthreads/pthread.c Fri Aug 25 09:37:26 2000
|
|
||||||
@@ -775,9 +775,7 @@ weak_alias (__pthread_getconcurrency, pt
|
|
||||||
|
|
||||||
void __pthread_set_own_extricate_if(pthread_descr self, pthread_extricate_if *peif)
|
|
||||||
{
|
|
||||||
- __pthread_lock(self->p_lock, self);
|
|
||||||
THREAD_SETMEM(self, p_extricate, peif);
|
|
||||||
- __pthread_unlock(self->p_lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Primitives for controlling thread execution */
|
|
@ -1,808 +0,0 @@
|
|||||||
Fixes following error building glibc-2.2.5 with gcc-3.4:
|
|
||||||
td_init.c: In function `td_init':
|
|
||||||
td_init.c:30: error: parse error before string constant
|
|
||||||
td_init.c:30: error: parse error before string constant
|
|
||||||
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
|
|
||||||
|
|
||||||
# Retrieved by diffing a +-1 day rng around the time mentioned
|
|
||||||
# in http://sources.redhat.com/ml/glibc-cvs/2001-q4/msg00654.html
|
|
||||||
# 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"
|
|
||||||
# then fixing paths.
|
|
||||||
|
|
||||||
# And then removing hunks that don't apply to rh6.2's glibc-2.1.3
|
|
||||||
# (thankfully, all were comments)
|
|
||||||
# and rediffing one hunk for glibc-2.1.3
|
|
||||||
|
|
||||||
Index: td_init.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_init.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_init.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_init.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Initialization function of thread debugger support library.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -27,6 +27,6 @@
|
|
||||||
td_init (void)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_init");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_log.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_log.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_log.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_log.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Noop, left for historical reasons.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,8 +25,8 @@
|
|
||||||
td_log (void)
|
|
||||||
{
|
|
||||||
/* This interface is deprecated in the Sun interface. We provide it
|
|
||||||
- for compatibility but don't do anyhting ourself. We might in
|
|
||||||
+ for compatibility but don't do anything ourself. We might in
|
|
||||||
future do some logging if this seems reasonable. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_log");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_ta_clear_event.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_clear_event.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Globally disable events.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_clear_event");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_delete.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_delete.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_delete.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_delete.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Detach to target process.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
td_err_e
|
|
||||||
td_ta_delete (td_thragent_t *ta)
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_delete");
|
|
||||||
|
|
||||||
/* Safety check. */
|
|
||||||
if (ta == NULL || __td_agent_list == NULL)
|
|
||||||
Index: td_ta_enable_stats.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_enable_stats.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_enable_stats.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_enable_stats.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Enable collection of statistics for process.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_enable_stats (const td_thragent_t *ta, int enable)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_enable_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_event_addr.c
|
|
||||||
===================================================================
|
|
||||||
--- glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c~ Tue Nov 9 21:05:07 1999
|
|
||||||
+++ glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c Sun Apr 11 22:23:28 2004
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
td_err_e res = TD_NOEVENT;
|
|
||||||
const char *symbol = NULL;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_event_addr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_event_getmsg.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_getmsg.c,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads_db/td_ta_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.5
|
|
||||||
+++ libc/linuxthreads_db/td_ta_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.6
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Retrieve event.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@
|
|
||||||
td_eventbuf_t event;
|
|
||||||
psaddr_t addr;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_event_getmsg");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_get_nthreads.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_nthreads.c,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads_db/td_ta_get_nthreads.c 6 Jul 2001 05:27:23 -0000 1.5
|
|
||||||
+++ libc/linuxthreads_db/td_ta_get_nthreads.c 28 Dec 2001 16:41:29 -0000 1.6
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
{
|
|
||||||
psaddr_t addr;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_nthreads");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_get_ph.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_ph.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_get_ph.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_get_ph.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get external process handle.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
td_err_e
|
|
||||||
td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_ph");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_get_stats.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_stats.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_get_stats.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_get_stats.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Retrieve statistics for process.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_map_id2thr.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_id2thr.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_ta_map_id2thr.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_ta_map_id2thr.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
int pthread_threads_max;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_map_id2thr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_map_lwp2thr.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_lwp2thr.c,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads_db/td_ta_map_lwp2thr.c 6 Jul 2001 05:27:23 -0000 1.5
|
|
||||||
+++ libc/linuxthreads_db/td_ta_map_lwp2thr.c 28 Dec 2001 16:41:29 -0000 1.6
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Which thread is running on an lwp?
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@
|
|
||||||
# define num 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_map_lwp2thr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_new.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_new.c,v
|
|
||||||
retrieving revision 1.10
|
|
||||||
retrieving revision 1.11
|
|
||||||
diff -u -r1.10 -r1.11
|
|
||||||
--- libc/linuxthreads_db/td_ta_new.c 6 Jul 2001 05:27:23 -0000 1.10
|
|
||||||
+++ libc/linuxthreads_db/td_ta_new.c 28 Dec 2001 16:41:29 -0000 1.11
|
|
||||||
@@ -35,7 +35,7 @@
|
|
||||||
psaddr_t addr;
|
|
||||||
struct agent_list *elemp;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_new");
|
|
||||||
|
|
||||||
/* Get the global event mask. This is one of the variables which
|
|
||||||
are new in the thread library to enable debugging. If it is
|
|
||||||
Index: td_ta_reset_stats.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_reset_stats.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_reset_stats.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_reset_stats.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Reset statistics.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_reset_stats (const td_thragent_t *ta)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_reset_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_set_event.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_set_event.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_ta_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_ta_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Globally enable events.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_set_event");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_setconcurrency.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_setconcurrency.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_setconcurrency.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_setconcurrency.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Set suggested concurrency level for process.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_setconcurrency (const td_thragent_t *ta, int level)
|
|
||||||
{
|
|
||||||
/* This is something LinuxThreads does not support. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_setconcurrency");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_thr_iter.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_thr_iter.c,v
|
|
||||||
retrieving revision 1.11
|
|
||||||
retrieving revision 1.12
|
|
||||||
diff -u -r1.11 -r1.12
|
|
||||||
--- libc/linuxthreads_db/td_ta_thr_iter.c 6 Jul 2001 05:27:23 -0000 1.11
|
|
||||||
+++ libc/linuxthreads_db/td_ta_thr_iter.c 28 Dec 2001 16:41:29 -0000 1.12
|
|
||||||
@@ -86,7 +86,7 @@
|
|
||||||
# define num 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_thr_iter");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_tsd_iter.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_tsd_iter.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_ta_tsd_iter.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_ta_tsd_iter.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
int pthread_keys_max;
|
|
||||||
int cnt;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_tsd_iter");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_thr_clear_event.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_clear_event.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_thr_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_thr_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Disable specific event for thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_clear_event");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
Index: td_thr_dbresume.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbresume.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_dbresume.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_dbresume.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Resume execution of given thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_dbresume (const td_thrhandle_t *th)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_dbresume");
|
|
||||||
return TD_NOCAPAB;
|
|
||||||
}
|
|
||||||
Index: td_thr_dbsuspend.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbsuspend.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_dbsuspend.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_dbsuspend.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Suspend execution of given thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_dbsuspend (const td_thrhandle_t *th)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_dbsuspend");
|
|
||||||
return TD_NOCAPAB;
|
|
||||||
}
|
|
||||||
Index: td_thr_event_enable.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_enable.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_thr_event_enable.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_thr_event_enable.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Enable event process-wide.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
const td_thrhandle_t *th;
|
|
||||||
int onoff;
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_event_enable");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdwrite (th->th_ta_p->ph,
|
|
||||||
Index: td_thr_event_getmsg.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_getmsg.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_thr_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_thr_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Retrieve event.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
{
|
|
||||||
td_eventbuf_t event;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_event_getmsg");
|
|
||||||
|
|
||||||
/* Read the even structure from the target. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
Index: td_thr_get_info.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_get_info.c,v
|
|
||||||
retrieving revision 1.9
|
|
||||||
retrieving revision 1.10
|
|
||||||
diff -u -r1.9 -r1.10
|
|
||||||
--- libc/linuxthreads_db/td_thr_get_info.c 6 Jul 2001 05:27:23 -0000 1.9
|
|
||||||
+++ libc/linuxthreads_db/td_thr_get_info.c 28 Dec 2001 16:41:29 -0000 1.10
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_get_info");
|
|
||||||
|
|
||||||
/* Get the thread descriptor. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_getfpregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getfpregs.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_thr_getfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_thr_getfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getfpregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_getgregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getgregs.c,v
|
|
||||||
retrieving revision 1.8
|
|
||||||
retrieving revision 1.9
|
|
||||||
diff -u -r1.8 -r1.9
|
|
||||||
--- libc/linuxthreads_db/td_thr_getgregs.c 6 Jul 2001 05:27:23 -0000 1.8
|
|
||||||
+++ libc/linuxthreads_db/td_thr_getgregs.c 28 Dec 2001 16:41:29 -0000 1.9
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getgregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_getxregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregs.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_getxregs.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_getxregs.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get a thread's extra state register set.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
|
|
||||||
{
|
|
||||||
/* XXX This might be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getxregs");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
Index: td_thr_getxregsize.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregsize.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_getxregsize.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_getxregsize.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get the size of the extra state register set for this architecture.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
|
|
||||||
{
|
|
||||||
/* XXX This might be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getxregsize");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
Index: td_thr_set_event.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_set_event.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_thr_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_thr_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Enable specific event for thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_set_event");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
Index: td_thr_setfpregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setfpregs.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_thr_setfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setfpregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_setgregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setgregs.c,v
|
|
||||||
retrieving revision 1.6
|
|
||||||
retrieving revision 1.7
|
|
||||||
diff -u -r1.6 -r1.7
|
|
||||||
--- libc/linuxthreads_db/td_thr_setgregs.c 6 Jul 2001 05:27:23 -0000 1.6
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setgregs.c 28 Dec 2001 16:41:29 -0000 1.7
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setgregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_setprio.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setprio.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_setprio.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setprio.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Set a thread's priority.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_setprio (const td_thrhandle_t *th, int prio)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setprio");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_thr_setsigpending.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setsigpending.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_setsigpending.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setsigpending.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Raise a signal for a thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -26,6 +26,6 @@
|
|
||||||
const sigset_t *ss)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setsigpending");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_thr_setxregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setxregs.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_setxregs.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setxregs.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Set a thread's extra state register set.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
|
|
||||||
{
|
|
||||||
/* XXX This might have to be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setxregs");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
Index: td_thr_sigsetmask.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_sigsetmask.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_sigsetmask.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_sigsetmask.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Set a thread's signal mask.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_sigsetmask");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_thr_tsd.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_tsd.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_tsd.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_tsd.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get a thread-specific data pointer for a thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@
|
|
||||||
unsigned int idx2nd;
|
|
||||||
void *p;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_tsd");
|
|
||||||
|
|
||||||
/* Get the thread descriptor. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_validate.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_validate.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_thr_validate.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_thr_validate.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
int pthread_threads_max = th->th_ta_p->pthread_threads_max;
|
|
||||||
int cnt;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_validate");
|
|
||||||
|
|
||||||
/* Now get all descriptors, one after the other. */
|
|
||||||
for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)
|
|
@ -1,497 +0,0 @@
|
|||||||
Fixes
|
|
||||||
td_init.c:30: error: parse error before string constant
|
|
||||||
td_init.c:30: error: parse error before string constant
|
|
||||||
|
|
||||||
From http://sources.redhat.com/ml/crossgcc/2005-01/msg00106.html :
|
|
||||||
---
|
|
||||||
Date: Mon, 31 Jan 2005 10:27:32 -0800
|
|
||||||
Message-ID: <BF124E1E7928E546B5705D93C699ABDC0C7E99@glimmer.glimmerglassnet.com>
|
|
||||||
From: "Vince Chen" <chen at glimmerglass dot com>
|
|
||||||
To: <crossgcc at sources dot redhat dot com>
|
|
||||||
|
|
||||||
I needed to build glibc-2.2.2 using gcc-3.x to support
|
|
||||||
some of our older redhat machines.
|
|
||||||
|
|
||||||
This file patches glibc-linuxthreads-2.2.2.
|
|
||||||
|
|
||||||
When using crosstool, I placed it in:
|
|
||||||
|
|
||||||
patches/glibc-linuxthreads-2.2.2/linuxthreads-gcc3.patch
|
|
||||||
|
|
||||||
(you also need the glibc-gcc3.patch)
|
|
||||||
|
|
||||||
-vince
|
|
||||||
---
|
|
||||||
[removed parts already in threadparam.patch]
|
|
||||||
|
|
||||||
===================================================================
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_init.c 1999-11-22 12:52:34.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_init.c 2005-01-27 19:05:36.000000000 -0800
|
|
||||||
@@ -27,6 +27,6 @@
|
|
||||||
td_init (void)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_init");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_log.c glibc-2.2.2/linuxthreads_db/td_log.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_log.c 1999-10-07 23:31:32.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_log.c 2005-01-27 19:05:29.000000000 -0800
|
|
||||||
@@ -27,6 +27,6 @@
|
|
||||||
/* This interface is deprecated in the Sun interface. We provide it
|
|
||||||
for compatibility but don't do anyhting ourself. We might in
|
|
||||||
future do some logging if this seems reasonable. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_log");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_clear_event.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_clear_event.c 2005-01-27 19:05:20.000000000 -0800
|
|
||||||
@@ -22,14 +22,12 @@
|
|
||||||
|
|
||||||
|
|
||||||
td_err_e
|
|
||||||
-td_ta_clear_event (ta, event)
|
|
||||||
- const td_thragent_t *ta;
|
|
||||||
- td_thr_events_t *event;
|
|
||||||
+td_ta_clear_event (const td_thragent_t *ta, td_thr_events_t *event)
|
|
||||||
{
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_clear_event");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c glibc-2.2.2/linuxthreads_db/td_ta_delete.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_delete.c 2005-01-27 19:04:59.000000000 -0800
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
td_err_e
|
|
||||||
td_ta_delete (td_thragent_t *ta)
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_delete");
|
|
||||||
|
|
||||||
/* Safety check. */
|
|
||||||
if (ta == NULL || __td_agent_list == NULL)
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_enable_stats.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_enable_stats.c 2005-01-27 19:04:50.000000000 -0800
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_enable_stats (const td_thragent_t *ta, int enable)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_enable_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_addr.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_event_addr.c 2005-01-27 19:04:41.000000000 -0800
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
td_err_e res = TD_NOEVENT;
|
|
||||||
const char *symbol = NULL;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_event_addr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_getmsg.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_event_getmsg.c 2005-01-27 19:04:33.000000000 -0800
|
|
||||||
@@ -32,7 +32,7 @@
|
|
||||||
td_eventbuf_t event;
|
|
||||||
psaddr_t addr;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_event_getmsg");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_nthreads.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_get_nthreads.c 2005-01-27 19:04:25.000000000 -0800
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
psaddr_t addr;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_nthreads");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_ph.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_get_ph.c 2005-01-27 19:04:17.000000000 -0800
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
td_err_e
|
|
||||||
td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_ph");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_stats.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_get_stats.c 2005-01-27 19:04:06.000000000 -0800
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_id2thr.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_map_id2thr.c 2005-01-27 19:03:54.000000000 -0800
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
int pthread_threads_max;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_map_id2thr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_lwp2thr.c 1999-11-22 18:25:26.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_map_lwp2thr.c 2005-01-27 19:03:46.000000000 -0800
|
|
||||||
@@ -34,7 +34,7 @@
|
|
||||||
# define num 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_map_lwp2thr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c glibc-2.2.2/linuxthreads_db/td_ta_new.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_new.c 2005-01-27 19:03:36.000000000 -0800
|
|
||||||
@@ -36,7 +36,7 @@
|
|
||||||
psaddr_t addr;
|
|
||||||
struct agent_list *elemp;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_new");
|
|
||||||
|
|
||||||
/* Get the global event mask. This is one of the variables which
|
|
||||||
are new in the thread library to enable debugging. If it is
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_reset_stats.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_reset_stats.c 2005-01-27 19:03:27.000000000 -0800
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_reset_stats (const td_thragent_t *ta)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_reset_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_set_event.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_set_event.c 2005-01-27 19:03:15.000000000 -0800
|
|
||||||
@@ -22,14 +22,12 @@
|
|
||||||
|
|
||||||
|
|
||||||
td_err_e
|
|
||||||
-td_ta_set_event (ta, event)
|
|
||||||
- const td_thragent_t *ta;
|
|
||||||
- td_thr_events_t *event;
|
|
||||||
+td_ta_set_event (const td_thragent_t *ta, td_thr_events_t *event)
|
|
||||||
{
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_set_event");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c 1999-11-08 14:52:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c 2005-01-27 19:02:48.000000000 -0800
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_setconcurrency (const td_thragent_t *ta, int level)
|
|
||||||
{
|
|
||||||
/* This is something LinuxThreads does not support. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_setconcurrency");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_thr_iter.c 2000-02-28 12:34:06.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_thr_iter.c 2005-01-27 19:02:39.000000000 -0800
|
|
||||||
@@ -86,7 +86,7 @@
|
|
||||||
# define num 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_thr_iter");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_ta_tsd_iter.c 2000-02-28 12:34:06.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_ta_tsd_iter.c 2005-01-27 19:02:29.000000000 -0800
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
int pthread_keys_max;
|
|
||||||
int cnt;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_tsd_iter");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_clear_event.c 1999-11-03 10:37:18.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_clear_event.c 2005-01-27 19:02:19.000000000 -0800
|
|
||||||
@@ -24,14 +24,12 @@
|
|
||||||
|
|
||||||
|
|
||||||
td_err_e
|
|
||||||
-td_thr_clear_event (th, event)
|
|
||||||
- const td_thrhandle_t *th;
|
|
||||||
- td_thr_events_t *event;
|
|
||||||
+td_thr_clear_event (const td_thrhandle_t *th, td_thr_events_t *event)
|
|
||||||
{
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_clear_event");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c 1999-10-07 23:40:02.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c 2005-01-27 19:01:54.000000000 -0800
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_dbresume (const td_thrhandle_t *th)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_dbresume");
|
|
||||||
return TD_NOCAPAB;
|
|
||||||
}
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c 1999-10-07 23:40:33.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c 2005-01-27 19:01:46.000000000 -0800
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_dbsuspend (const td_thrhandle_t *th)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_dbsuspend");
|
|
||||||
return TD_NOCAPAB;
|
|
||||||
}
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_enable.c 1999-11-02 16:06:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_event_enable.c 2005-01-27 19:01:35.000000000 -0800
|
|
||||||
@@ -24,11 +24,9 @@
|
|
||||||
|
|
||||||
|
|
||||||
td_err_e
|
|
||||||
-td_thr_event_enable (th, onoff)
|
|
||||||
- const td_thrhandle_t *th;
|
|
||||||
- int onoff;
|
|
||||||
+td_thr_event_enable (const td_thrhandle_t *th, int onoff)
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_event_enable");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdwrite (th->th_ta_p->ph,
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_getmsg.c 1999-11-02 16:06:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_event_getmsg.c 2005-01-27 19:01:11.000000000 -0800
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
{
|
|
||||||
td_eventbuf_t event;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_event_getmsg");
|
|
||||||
|
|
||||||
/* Read the even structure from the target. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_get_info.c 2000-05-01 14:56:42.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_get_info.c 2005-01-27 19:00:59.000000000 -0800
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_get_info");
|
|
||||||
|
|
||||||
/* Get the thread descriptor. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c 1999-11-02 16:06:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c 2005-01-27 19:00:49.000000000 -0800
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getfpregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c 2000-02-11 15:48:51.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c 2005-01-27 19:00:37.000000000 -0800
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getgregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c 1999-10-07 23:46:09.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c 2005-01-27 19:00:26.000000000 -0800
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
|
|
||||||
{
|
|
||||||
/* XXX This might be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getxregs");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c 1999-10-07 23:46:33.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c 2005-01-27 19:00:16.000000000 -0800
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
|
|
||||||
{
|
|
||||||
/* XXX This might be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getxregsize");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
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
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_set_event.c 1999-11-03 10:37:18.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_set_event.c 2005-01-27 19:00:08.000000000 -0800
|
|
||||||
@@ -24,14 +24,12 @@
|
|
||||||
|
|
||||||
|
|
||||||
td_err_e
|
|
||||||
-td_thr_set_event (th, event)
|
|
||||||
- const td_thrhandle_t *th;
|
|
||||||
- td_thr_events_t *event;
|
|
||||||
+td_thr_set_event (const td_thrhandle_t *th, td_thr_events_t *event)
|
|
||||||
{
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_set_event");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c 1999-11-02 16:06:10.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c 2005-01-27 18:59:06.000000000 -0800
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setfpregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c 2000-02-11 15:48:51.000000000 -0800
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c 2005-01-27 18:58:57.000000000 -0800
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setgregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c glibc-2.2.2/linuxthreads_db/td_thr_setprio.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c 1999-10-07 23:49:11.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_setprio.c 2005-01-27 18:58:46.000000000 -0800
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_setprio (const td_thrhandle_t *th, int prio)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setprio");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c 1999-10-07 23:49:38.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c 2005-01-27 18:58:34.000000000 -0800
|
|
||||||
@@ -26,6 +26,6 @@
|
|
||||||
const sigset_t *ss)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setsigpending");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c 1999-10-07 23:48:20.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c 2005-01-27 18:58:21.000000000 -0800
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
|
|
||||||
{
|
|
||||||
/* XXX This might have to be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setxregs");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c 1999-10-07 23:50:34.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c 2005-01-27 18:57:58.000000000 -0800
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_sigsetmask");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c glibc-2.2.2/linuxthreads_db/td_thr_tsd.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c 1999-10-07 23:52:15.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_tsd.c 2005-01-27 18:58:09.000000000 -0800
|
|
||||||
@@ -33,7 +33,7 @@
|
|
||||||
unsigned int idx2nd;
|
|
||||||
void *p;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_tsd");
|
|
||||||
|
|
||||||
/* Get the thread descriptor. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c glibc-2.2.2/linuxthreads_db/td_thr_validate.c
|
|
||||||
--- glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c 1999-10-14 17:24:20.000000000 -0700
|
|
||||||
+++ glibc-2.2.2/linuxthreads_db/td_thr_validate.c 2005-01-27 18:57:41.000000000 -0800
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
int pthread_threads_max = th->th_ta_p->pthread_threads_max;
|
|
||||||
int cnt;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_validate");
|
|
||||||
|
|
||||||
/* Now get all descriptors, one after the other. */
|
|
||||||
for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)
|
|
@ -1,69 +0,0 @@
|
|||||||
2002-05-21 Ulrich Drepper <drepper@redhat.com>
|
|
||||||
|
|
||||||
* sysdeps/pthread/pthread.h (pthread_create): Rename first parameter.
|
|
||||||
(pthread_cancel): Likewise.
|
|
||||||
* internals.h (__pthread_create_2_1): Likewise.
|
|
||||||
* sysdeps/unix/sysv/linux/bits/sigthread.h (pthread_kill): Likewise.
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/internals.h,v
|
|
||||||
retrieving revision 1.69.2.2
|
|
||||||
retrieving revision 1.69.2.3
|
|
||||||
diff -u -r1.69.2.2 -r1.69.2.3
|
|
||||||
--- libc/linuxthreads/internals.h 2002/03/22 08:30:32 1.69.2.2
|
|
||||||
+++ libc/linuxthreads/internals.h 2002/08/20 22:01:25 1.69.2.3
|
|
||||||
@@ -554,7 +554,7 @@
|
|
||||||
/* Prototypes for compatibility functions. */
|
|
||||||
extern int __pthread_attr_init_2_1 (pthread_attr_t *__attr);
|
|
||||||
extern int __pthread_attr_init_2_0 (pthread_attr_t *__attr);
|
|
||||||
-extern int __pthread_create_2_1 (pthread_t *__restrict __thread,
|
|
||||||
+extern int __pthread_create_2_1 (pthread_t *__restrict __threadp,
|
|
||||||
const pthread_attr_t *__attr,
|
|
||||||
void *(*__start_routine) (void *),
|
|
||||||
void *__restrict __arg);
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/pthread/pthread.h,v
|
|
||||||
retrieving revision 1.31
|
|
||||||
retrieving revision 1.31.2.1
|
|
||||||
diff -u -r1.31 -r1.31.2.1
|
|
||||||
--- libc/linuxthreads/sysdeps/pthread/pthread.h 2001/03/15 21:12:31 1.31
|
|
||||||
+++ libc/linuxthreads/sysdeps/pthread/pthread.h 2002/08/20 22:01:26 1.31.2.1
|
|
||||||
@@ -160,7 +160,7 @@
|
|
||||||
/* Create a thread with given attributes ATTR (or default attributes
|
|
||||||
if ATTR is NULL), and call function START_ROUTINE with given
|
|
||||||
arguments ARG. */
|
|
||||||
-extern int pthread_create (pthread_t *__restrict __thread,
|
|
||||||
+extern int pthread_create (pthread_t *__restrict __threadp,
|
|
||||||
__const pthread_attr_t *__restrict __attr,
|
|
||||||
void *(*__start_routine) (void *),
|
|
||||||
void *__restrict __arg) __THROW;
|
|
||||||
@@ -588,7 +588,7 @@
|
|
||||||
extern int pthread_setcanceltype (int __type, int *__oldtype) __THROW;
|
|
||||||
|
|
||||||
/* Cancel THREAD immediately or at the next possibility. */
|
|
||||||
-extern int pthread_cancel (pthread_t __thread) __THROW;
|
|
||||||
+extern int pthread_cancel (pthread_t __cancelthread) __THROW;
|
|
||||||
|
|
||||||
/* Test for pending cancellation for the current thread and terminate
|
|
||||||
the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.5.2.1
|
|
||||||
diff -u -r1.5 -r1.5.2.1
|
|
||||||
--- libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2000/08/21 06:48:03 1.5
|
|
||||||
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2002/08/20 22:01:26 1.5.2.1
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Signal handling function for threaded programs.
|
|
||||||
- Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
|
||||||
@@ -33,6 +33,6 @@
|
|
||||||
__sigset_t *__restrict __oldmask)__THROW;
|
|
||||||
|
|
||||||
/* Send signal SIGNO to the given thread. */
|
|
||||||
-extern int pthread_kill (pthread_t __thread, int __signo) __THROW;
|
|
||||||
+extern int pthread_kill (pthread_t __threadid, int __signo) __THROW;
|
|
||||||
|
|
||||||
#endif /* bits/sigthread.h */
|
|
@ -1,881 +0,0 @@
|
|||||||
Fixes following error building glibc-2.2.5 with gcc-3.4:
|
|
||||||
td_init.c: In function `td_init':
|
|
||||||
td_init.c:30: error: parse error before string constant
|
|
||||||
td_init.c:30: error: parse error before string constant
|
|
||||||
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
|
|
||||||
|
|
||||||
# Retrieved by diffing a +-1 day rng around the time mentioned
|
|
||||||
# in http://sources.redhat.com/ml/glibc-cvs/2001-q4/msg00654.html
|
|
||||||
# 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"
|
|
||||||
# then fixing paths.
|
|
||||||
|
|
||||||
Index: ChangeLog
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/ChangeLog,v
|
|
||||||
retrieving revision 1.41
|
|
||||||
retrieving revision 1.42
|
|
||||||
diff -u -r1.41 -r1.42
|
|
||||||
--- libc/linuxthreads_db/ChangeLog 13 Apr 2001 00:09:54 -0000 1.41
|
|
||||||
+++ libc/linuxthreads_db/ChangeLog 29 Dec 2001 00:59:58 -0000 1.42
|
|
||||||
@@ -1,3 +1,43 @@
|
|
||||||
+2001-12-28 Andreas Jaeger <aj@suse.de>
|
|
||||||
+
|
|
||||||
+ * td_init.c (td_init): Don't use __FUNCTION__ as literal.
|
|
||||||
+ * td_log.c (td_log): Likewise.
|
|
||||||
+ * td_ta_delete.c (td_ta_delete): Likewise.
|
|
||||||
+ * td_ta_get_nthreads.c (td_ta_get_nthreads): Likewise.
|
|
||||||
+ * td_ta_get_ph.c (td_ta_get_ph): Likewise.
|
|
||||||
+ * td_ta_map_id2thr.c (td_ta_map_id2thr): Likewise.
|
|
||||||
+ * td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Likewise.
|
|
||||||
+ * td_ta_new.c (td_ta_new): Likewise.
|
|
||||||
+ * td_ta_clear_event.c (td_ta_clear_event): Likewise.
|
|
||||||
+ * td_ta_enable_stats.c (td_ta_enable_stats): Likewise.
|
|
||||||
+ * td_ta_event_addr.c (td_ta_event_addr): Likewise.
|
|
||||||
+ * td_ta_event_getmsg.c (td_ta_event_getmsg): Likewise.
|
|
||||||
+ * td_ta_get_stats.c (td_ta_get_stats): Likewise.
|
|
||||||
+ * td_ta_reset_stats.c (td_ta_reset_stats): Likewise.
|
|
||||||
+ * td_ta_set_event.c (td_ta_set_event): Likewise.
|
|
||||||
+ * td_ta_setconcurrency.c (td_ta_setconcurrency): Likewise.
|
|
||||||
+ * td_ta_thr_iter.c (td_ta_thr_iter): Likewise.
|
|
||||||
+ * td_ta_tsd_iter.c (td_ta_tsd_iter): Likewise.
|
|
||||||
+ * td_thr_clear_event.c (td_thr_clear_event): Likewise.
|
|
||||||
+ * td_thr_dbresume.c (td_thr_dbresume): Likewise.
|
|
||||||
+ * td_thr_dbsuspend.c (td_thr_dbsuspend): Likewise.
|
|
||||||
+ * td_thr_event_enable.c (td_thr_event_enable): Likewise.
|
|
||||||
+ * td_thr_event_getmsg.c (td_thr_event_getmsg): Likewise.
|
|
||||||
+ * td_thr_get_info.c (td_thr_get_info): Likewise.
|
|
||||||
+ * td_thr_getfpregs.c (td_thr_getfpregs): Likewise.
|
|
||||||
+ * td_thr_getgregs.c (td_thr_getgregs): Likewise.
|
|
||||||
+ * td_thr_getxregs.c (td_thr_getxregs): Likewise.
|
|
||||||
+ * td_thr_getxregsize.c (td_thr_getxregsize): Likewise.
|
|
||||||
+ * td_thr_set_event.c (td_thr_set_event): Likewise.
|
|
||||||
+ * td_thr_setfpregs.c (td_thr_setfpregs): Likewise.
|
|
||||||
+ * td_thr_setgregs.c (td_thr_setgregs): Likewise.
|
|
||||||
+ * td_thr_setprio.c (td_thr_setprio): Likewise.
|
|
||||||
+ * td_thr_setsigpending.c (td_thr_setsigpending): Likewise.
|
|
||||||
+ * td_thr_setxregs.c (td_thr_setxregs): Likewise.
|
|
||||||
+ * td_thr_sigsetmask.c (td_thr_sigsetmask): Likewise.
|
|
||||||
+ * td_thr_tsd.c (td_thr_tsd): Likewise.
|
|
||||||
+ * td_thr_validate.c (td_thr_validate): Likewise.
|
|
||||||
+
|
|
||||||
2001-04-12 Ulrich Drepper <drepper@redhat.com>
|
|
||||||
|
|
||||||
* td_ta_map_id2thr.c: If thread terminated return TD_NOTHR.
|
|
||||||
Index: td_init.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_init.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_init.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_init.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Initialization function of thread debugger support library.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -27,6 +27,6 @@
|
|
||||||
td_init (void)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_init");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_log.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_log.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_log.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_log.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Noop, left for historical reasons.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,8 +25,8 @@
|
|
||||||
td_log (void)
|
|
||||||
{
|
|
||||||
/* This interface is deprecated in the Sun interface. We provide it
|
|
||||||
- for compatibility but don't do anyhting ourself. We might in
|
|
||||||
+ for compatibility but don't do anything ourself. We might in
|
|
||||||
future do some logging if this seems reasonable. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_log");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_ta_clear_event.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_clear_event.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Globally disable events.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_clear_event");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_delete.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_delete.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_delete.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_delete.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Detach to target process.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
td_err_e
|
|
||||||
td_ta_delete (td_thragent_t *ta)
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_delete");
|
|
||||||
|
|
||||||
/* Safety check. */
|
|
||||||
if (ta == NULL || __td_agent_list == NULL)
|
|
||||||
Index: td_ta_enable_stats.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_enable_stats.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_enable_stats.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_enable_stats.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Enable collection of statistics for process.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_enable_stats (const td_thragent_t *ta, int enable)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_enable_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_event_addr.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_addr.c,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads_db/td_ta_event_addr.c 6 Jul 2001 05:27:23 -0000 1.5
|
|
||||||
+++ libc/linuxthreads_db/td_ta_event_addr.c 28 Dec 2001 16:41:29 -0000 1.6
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
td_err_e res = TD_NOEVENT;
|
|
||||||
int idx = -1;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_event_addr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_event_getmsg.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_getmsg.c,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads_db/td_ta_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.5
|
|
||||||
+++ libc/linuxthreads_db/td_ta_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.6
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Retrieve event.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@
|
|
||||||
td_eventbuf_t event;
|
|
||||||
psaddr_t addr;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_event_getmsg");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_get_nthreads.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_nthreads.c,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads_db/td_ta_get_nthreads.c 6 Jul 2001 05:27:23 -0000 1.5
|
|
||||||
+++ libc/linuxthreads_db/td_ta_get_nthreads.c 28 Dec 2001 16:41:29 -0000 1.6
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
{
|
|
||||||
psaddr_t addr;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_nthreads");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_get_ph.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_ph.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_get_ph.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_get_ph.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get external process handle.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
td_err_e
|
|
||||||
td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_ph");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_get_stats.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_stats.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_get_stats.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_get_stats.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Retrieve statistics for process.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_get_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_map_id2thr.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_id2thr.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_ta_map_id2thr.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_ta_map_id2thr.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
int pthread_threads_max;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_map_id2thr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_map_lwp2thr.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_lwp2thr.c,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads_db/td_ta_map_lwp2thr.c 6 Jul 2001 05:27:23 -0000 1.5
|
|
||||||
+++ libc/linuxthreads_db/td_ta_map_lwp2thr.c 28 Dec 2001 16:41:29 -0000 1.6
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Which thread is running on an lwp?
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@
|
|
||||||
# define num 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_map_lwp2thr");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_new.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_new.c,v
|
|
||||||
retrieving revision 1.10
|
|
||||||
retrieving revision 1.11
|
|
||||||
diff -u -r1.10 -r1.11
|
|
||||||
--- libc/linuxthreads_db/td_ta_new.c 6 Jul 2001 05:27:23 -0000 1.10
|
|
||||||
+++ libc/linuxthreads_db/td_ta_new.c 28 Dec 2001 16:41:29 -0000 1.11
|
|
||||||
@@ -35,7 +35,7 @@
|
|
||||||
psaddr_t addr;
|
|
||||||
struct agent_list *elemp;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_new");
|
|
||||||
|
|
||||||
/* Get the global event mask. This is one of the variables which
|
|
||||||
are new in the thread library to enable debugging. If it is
|
|
||||||
Index: td_ta_reset_stats.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_reset_stats.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_reset_stats.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_reset_stats.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Reset statistics.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_reset_stats (const td_thragent_t *ta)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_reset_stats");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_set_event.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_set_event.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_ta_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_ta_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Globally enable events.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_set_event");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_setconcurrency.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_setconcurrency.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_ta_setconcurrency.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_ta_setconcurrency.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Set suggested concurrency level for process.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
td_ta_setconcurrency (const td_thragent_t *ta, int level)
|
|
||||||
{
|
|
||||||
/* This is something LinuxThreads does not support. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_setconcurrency");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_thr_iter.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_thr_iter.c,v
|
|
||||||
retrieving revision 1.11
|
|
||||||
retrieving revision 1.12
|
|
||||||
diff -u -r1.11 -r1.12
|
|
||||||
--- libc/linuxthreads_db/td_ta_thr_iter.c 6 Jul 2001 05:27:23 -0000 1.11
|
|
||||||
+++ libc/linuxthreads_db/td_ta_thr_iter.c 28 Dec 2001 16:41:29 -0000 1.12
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Iterate over a process's threads.
|
|
||||||
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@
|
|
||||||
# define num 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_thr_iter");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_ta_tsd_iter.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_tsd_iter.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_ta_tsd_iter.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_ta_tsd_iter.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Iterate over a process's thread-specific data.
|
|
||||||
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
int pthread_keys_max;
|
|
||||||
int cnt;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_ta_tsd_iter");
|
|
||||||
|
|
||||||
/* Test whether the TA parameter is ok. */
|
|
||||||
if (! ta_ok (ta))
|
|
||||||
Index: td_thr_clear_event.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_clear_event.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_thr_clear_event.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_thr_clear_event.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Disable specific event for thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_clear_event");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
Index: td_thr_dbresume.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbresume.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_dbresume.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_dbresume.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Resume execution of given thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_dbresume (const td_thrhandle_t *th)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_dbresume");
|
|
||||||
return TD_NOCAPAB;
|
|
||||||
}
|
|
||||||
Index: td_thr_dbsuspend.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbsuspend.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_dbsuspend.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_dbsuspend.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Suspend execution of given thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_dbsuspend (const td_thrhandle_t *th)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_dbsuspend");
|
|
||||||
return TD_NOCAPAB;
|
|
||||||
}
|
|
||||||
Index: td_thr_event_enable.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_enable.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_thr_event_enable.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_thr_event_enable.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Enable event process-wide.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
const td_thrhandle_t *th;
|
|
||||||
int onoff;
|
|
||||||
{
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_event_enable");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdwrite (th->th_ta_p->ph,
|
|
||||||
Index: td_thr_event_getmsg.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_getmsg.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads_db/td_thr_event_getmsg.c 6 Jul 2001 05:27:23 -0000 1.3
|
|
||||||
+++ libc/linuxthreads_db/td_thr_event_getmsg.c 28 Dec 2001 16:41:29 -0000 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Retrieve event.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
{
|
|
||||||
td_eventbuf_t event;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_event_getmsg");
|
|
||||||
|
|
||||||
/* Read the even structure from the target. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
Index: td_thr_get_info.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_get_info.c,v
|
|
||||||
retrieving revision 1.9
|
|
||||||
retrieving revision 1.10
|
|
||||||
diff -u -r1.9 -r1.10
|
|
||||||
--- libc/linuxthreads_db/td_thr_get_info.c 6 Jul 2001 05:27:23 -0000 1.9
|
|
||||||
+++ libc/linuxthreads_db/td_thr_get_info.c 28 Dec 2001 16:41:29 -0000 1.10
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get thread information.
|
|
||||||
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_get_info");
|
|
||||||
|
|
||||||
/* Get the thread descriptor. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_getfpregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getfpregs.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_thr_getfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_thr_getfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getfpregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_getgregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getgregs.c,v
|
|
||||||
retrieving revision 1.8
|
|
||||||
retrieving revision 1.9
|
|
||||||
diff -u -r1.8 -r1.9
|
|
||||||
--- libc/linuxthreads_db/td_thr_getgregs.c 6 Jul 2001 05:27:23 -0000 1.8
|
|
||||||
+++ libc/linuxthreads_db/td_thr_getgregs.c 28 Dec 2001 16:41:29 -0000 1.9
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getgregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_getxregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregs.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_getxregs.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_getxregs.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get a thread's extra state register set.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
|
|
||||||
{
|
|
||||||
/* XXX This might be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getxregs");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
Index: td_thr_getxregsize.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregsize.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_getxregsize.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_getxregsize.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get the size of the extra state register set for this architecture.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
|
|
||||||
{
|
|
||||||
/* XXX This might be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_getxregsize");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
Index: td_thr_set_event.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_set_event.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_thr_set_event.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_thr_set_event.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Enable specific event for thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@
|
|
||||||
td_thr_events_t old_event;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_set_event");
|
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph,
|
|
||||||
Index: td_thr_setfpregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setfpregs.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_thr_setfpregs.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setfpregs.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setfpregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_setgregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setgregs.c,v
|
|
||||||
retrieving revision 1.6
|
|
||||||
retrieving revision 1.7
|
|
||||||
diff -u -r1.6 -r1.7
|
|
||||||
--- libc/linuxthreads_db/td_thr_setgregs.c 6 Jul 2001 05:27:23 -0000 1.6
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setgregs.c 28 Dec 2001 16:41:29 -0000 1.7
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
{
|
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setgregs");
|
|
||||||
|
|
||||||
/* We have to get the state and the PID for this thread. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_setprio.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setprio.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_setprio.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setprio.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Set a thread's priority.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_setprio (const td_thrhandle_t *th, int prio)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setprio");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_thr_setsigpending.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setsigpending.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_setsigpending.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setsigpending.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Raise a signal for a thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -26,6 +26,6 @@
|
|
||||||
const sigset_t *ss)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setsigpending");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_thr_setxregs.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setxregs.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_setxregs.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_setxregs.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Set a thread's extra state register set.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
|
|
||||||
{
|
|
||||||
/* XXX This might have to be platform specific. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_setxregs");
|
|
||||||
return TD_NOXREGS;
|
|
||||||
}
|
|
||||||
Index: td_thr_sigsetmask.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_sigsetmask.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_sigsetmask.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_sigsetmask.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Set a thread's signal mask.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@
|
|
||||||
td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
|
|
||||||
{
|
|
||||||
/* XXX We have to figure out what has to be done. */
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_sigsetmask");
|
|
||||||
return TD_OK;
|
|
||||||
}
|
|
||||||
Index: td_thr_tsd.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_tsd.c,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.3
|
|
||||||
diff -u -r1.2 -r1.3
|
|
||||||
--- libc/linuxthreads_db/td_thr_tsd.c 6 Jul 2001 05:27:23 -0000 1.2
|
|
||||||
+++ libc/linuxthreads_db/td_thr_tsd.c 28 Dec 2001 16:41:29 -0000 1.3
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Get a thread-specific data pointer for a thread.
|
|
||||||
- Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@
|
|
||||||
unsigned int idx2nd;
|
|
||||||
void *p;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_tsd");
|
|
||||||
|
|
||||||
/* Get the thread descriptor. */
|
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
|
||||||
Index: td_thr_validate.c
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_validate.c,v
|
|
||||||
retrieving revision 1.4
|
|
||||||
retrieving revision 1.5
|
|
||||||
diff -u -r1.4 -r1.5
|
|
||||||
--- libc/linuxthreads_db/td_thr_validate.c 6 Jul 2001 05:27:23 -0000 1.4
|
|
||||||
+++ libc/linuxthreads_db/td_thr_validate.c 28 Dec 2001 16:41:29 -0000 1.5
|
|
||||||
@@ -28,7 +28,7 @@
|
|
||||||
int pthread_threads_max = th->th_ta_p->pthread_threads_max;
|
|
||||||
int cnt;
|
|
||||||
|
|
||||||
- LOG (__FUNCTION__);
|
|
||||||
+ LOG ("td_thr_validate");
|
|
||||||
|
|
||||||
/* Now get all descriptors, one after the other. */
|
|
||||||
for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)
|
|
@ -1,25 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
Should fix error
|
|
||||||
|
|
||||||
internals.h: In function `pthread_setcancelstate':
|
|
||||||
internals.h:381: error: asm-specifier for variable `__self' conflicts with asm clobber list
|
|
||||||
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
|
|
||||||
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'
|
|
||||||
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/alpha/pt-machine.h,v
|
|
||||||
retrieving revision 1.9
|
|
||||||
retrieving revision 1.10
|
|
||||||
diff -u -r1.9 -r1.10
|
|
||||||
--- libc/linuxthreads/sysdeps/alpha/pt-machine.h 2002/04/06 04:05:13 1.9
|
|
||||||
+++ libc/linuxthreads/sysdeps/alpha/pt-machine.h 2002/05/20 20:09:34 1.10
|
|
||||||
@@ -76,7 +76,7 @@
|
|
||||||
#define THREAD_SELF \
|
|
||||||
({ \
|
|
||||||
register pthread_descr __self __asm__("$0"); \
|
|
||||||
- __asm__ ("call_pal %1" : "=r"(__self) : "i"(PAL_rduniq) : "$0"); \
|
|
||||||
+ __asm__ ("call_pal %1" : "=r"(__self) : "i"(PAL_rduniq)); \
|
|
||||||
__self; \
|
|
||||||
})
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
# see http://bugs.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4155
|
|
||||||
# and http://www.kegel.com/xgcc3/ppc405erratum77.html
|
|
||||||
# See also matching patch for glibc
|
|
||||||
|
|
||||||
diff -aur glibc-2.2.5.orig/linuxthreads/sysdeps/powerpc/pt-machine.h glibc-2.2.5/linuxthreads/sysdeps/powerpc/pt-machine.h
|
|
||||||
--- glibc-2.2.5.orig/linuxthreads/sysdeps/powerpc/pt-machine.h Thu May 17 12:47:46 2001
|
|
||||||
+++ glibc-2.2.5/linuxthreads/sysdeps/powerpc/pt-machine.h Tue Jul 23 05:38:24 2002
|
|
||||||
@@ -41,6 +41,17 @@
|
|
||||||
#define HAS_COMPARE_AND_SWAP_WITH_RELEASE_SEMANTICS
|
|
||||||
#define IMPLEMENT_TAS_WITH_CAS
|
|
||||||
|
|
||||||
+#ifdef __PPC405__
|
|
||||||
+/* workaround for PPC405 erratum #77 - Mark Hatle, dank. References:
|
|
||||||
+ http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/89DED00DEBFF54BF87256A8000491BA2/$file/405CR_C_errata_1_2.pdf
|
|
||||||
+ http://ppc.bkbits.net:8080/linuxppc_2_4_devel/cset@1.489
|
|
||||||
+ http://www.kegel.com/xgcc3/ppc405erratum77.html
|
|
||||||
+ FIXME: using dbct instead of sync would be faster */
|
|
||||||
+#define __LINUXTHREADS_PPC405_ERR77_SYNC "sync \n\t"
|
|
||||||
+#else
|
|
||||||
+#define __LINUXTHREADS_PPC405_ERR77_SYNC
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
PT_EI int
|
|
||||||
__compare_and_swap (long int *p, long int oldval, long int newval)
|
|
||||||
{
|
|
||||||
@@ -50,6 +61,7 @@
|
|
||||||
"0: lwarx %0,0,%1 ;"
|
|
||||||
" xor. %0,%3,%0;"
|
|
||||||
" bne 1f;"
|
|
||||||
+ __LINUXTHREADS_PPC405_ERR77_SYNC
|
|
||||||
" stwcx. %2,0,%1;"
|
|
||||||
" bne- 0b;"
|
|
||||||
"1: "
|
|
||||||
|
|
@ -1,119 +0,0 @@
|
|||||||
--- glibc-2.2.5/linuxthreads/sysdeps/alpha/elf/pt-initfini.c.old Fri Jun 6 22:02:08 2003
|
|
||||||
+++ glibc-2.2.5/linuxthreads/sysdeps/alpha/elf/pt-initfini.c Fri Jun 6 22:02:33 2003
|
|
||||||
@@ -37,60 +37,60 @@
|
|
||||||
files, all of which may have different GP values. So we must reload
|
|
||||||
the GP value from crti.o in crtn.o. */
|
|
||||||
|
|
||||||
-__asm__ ("
|
|
||||||
-
|
|
||||||
-#include \"defs.h\"
|
|
||||||
-
|
|
||||||
-/*@HEADER_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@_init_PROLOG_BEGINS*/
|
|
||||||
- .section .init, \"ax\", @progbits
|
|
||||||
- .globl _init
|
|
||||||
- .ent _init
|
|
||||||
-_init:
|
|
||||||
- ldgp $29, 0($27)
|
|
||||||
- subq $30, 16, $30
|
|
||||||
- lda $27, __pthread_initialize_minimal
|
|
||||||
- stq $26, 0($30)
|
|
||||||
- stq $29, 8($30)
|
|
||||||
- .prologue 1
|
|
||||||
- jsr $26, ($27), __pthread_initialize_minimal
|
|
||||||
- ldq $29, 8($30)
|
|
||||||
- .align 3
|
|
||||||
- .end _init
|
|
||||||
- .size _init, 0
|
|
||||||
-/*@_init_PROLOG_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@_init_EPILOG_BEGINS*/
|
|
||||||
- .section .init, \"ax\", @progbits
|
|
||||||
- ldq $26, 0($30)
|
|
||||||
- ldq $29, 8($30)
|
|
||||||
- addq $30, 16, $30
|
|
||||||
- ret
|
|
||||||
-/*@_init_EPILOG_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@_fini_PROLOG_BEGINS*/
|
|
||||||
- .section .fini, \"ax\", @progbits
|
|
||||||
- .globl _fini
|
|
||||||
- .ent _fini
|
|
||||||
-_fini:
|
|
||||||
- ldgp $29, 0($27)
|
|
||||||
- subq $30, 16, $30
|
|
||||||
- stq $26, 0($30)
|
|
||||||
- stq $29, 8($30)
|
|
||||||
- .prologue 1
|
|
||||||
- .align 3
|
|
||||||
- .end _fini
|
|
||||||
- .size _fini, 0
|
|
||||||
-/*@_fini_PROLOG_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@_fini_EPILOG_BEGINS*/
|
|
||||||
- .section .fini, \"ax\", @progbits
|
|
||||||
- ldq $26, 0($30)
|
|
||||||
- ldq $29, 8($30)
|
|
||||||
- addq $30, 16, $30
|
|
||||||
- ret
|
|
||||||
-/*@_fini_EPILOG_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@TRAILER_BEGINS*/
|
|
||||||
+__asm__ ("\n\
|
|
||||||
+\n\
|
|
||||||
+#include \"defs.h\"\n\
|
|
||||||
+\n\
|
|
||||||
+/*@HEADER_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@_init_PROLOG_BEGINS*/\n\
|
|
||||||
+ .section .init, \"ax\", @progbits\n\
|
|
||||||
+ .globl _init\n\
|
|
||||||
+ .ent _init\n\
|
|
||||||
+_init:\n\
|
|
||||||
+ ldgp $29, 0($27)\n\
|
|
||||||
+ subq $30, 16, $30\n\
|
|
||||||
+ lda $27, __pthread_initialize_minimal\n\
|
|
||||||
+ stq $26, 0($30)\n\
|
|
||||||
+ stq $29, 8($30)\n\
|
|
||||||
+ .prologue 1\n\
|
|
||||||
+ jsr $26, ($27), __pthread_initialize_minimal\n\
|
|
||||||
+ ldq $29, 8($30)\n\
|
|
||||||
+ .align 3\n\
|
|
||||||
+ .end _init\n\
|
|
||||||
+ .size _init, 0\n\
|
|
||||||
+/*@_init_PROLOG_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@_init_EPILOG_BEGINS*/\n\
|
|
||||||
+ .section .init, \"ax\", @progbits\n\
|
|
||||||
+ ldq $26, 0($30)\n\
|
|
||||||
+ ldq $29, 8($30)\n\
|
|
||||||
+ addq $30, 16, $30\n\
|
|
||||||
+ ret\n\
|
|
||||||
+/*@_init_EPILOG_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@_fini_PROLOG_BEGINS*/\n\
|
|
||||||
+ .section .fini, \"ax\", @progbits\n\
|
|
||||||
+ .globl _fini\n\
|
|
||||||
+ .ent _fini\n\
|
|
||||||
+_fini:\n\
|
|
||||||
+ ldgp $29, 0($27)\n\
|
|
||||||
+ subq $30, 16, $30\n\
|
|
||||||
+ stq $26, 0($30)\n\
|
|
||||||
+ stq $29, 8($30)\n\
|
|
||||||
+ .prologue 1\n\
|
|
||||||
+ .align 3\n\
|
|
||||||
+ .end _fini\n\
|
|
||||||
+ .size _fini, 0\n\
|
|
||||||
+/*@_fini_PROLOG_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@_fini_EPILOG_BEGINS*/\n\
|
|
||||||
+ .section .fini, \"ax\", @progbits\n\
|
|
||||||
+ ldq $26, 0($30)\n\
|
|
||||||
+ ldq $29, 8($30)\n\
|
|
||||||
+ addq $30, 16, $30\n\
|
|
||||||
+ ret\n\
|
|
||||||
+/*@_fini_EPILOG_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@TRAILER_BEGINS*/\n\
|
|
||||||
");
|
|
@ -1,267 +0,0 @@
|
|||||||
--- glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/sh/pt-initfini.c.old Wed May 28 09:29:55 2003
|
|
||||||
+++ glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/sh/pt-initfini.c Wed May 28 09:30:11 2003
|
|
||||||
@@ -36,134 +36,134 @@
|
|
||||||
* crtn.s puts the corresponding function epilogues
|
|
||||||
in the .init and .fini sections. */
|
|
||||||
|
|
||||||
-__asm__ ("
|
|
||||||
-
|
|
||||||
-#include \"defs.h\"
|
|
||||||
-#define SHARED
|
|
||||||
-
|
|
||||||
-/*@HEADER_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@TESTS_BEGIN*/
|
|
||||||
-
|
|
||||||
-/*@TESTS_END*/
|
|
||||||
-
|
|
||||||
-/*@_init_PROLOG_BEGINS*/
|
|
||||||
- .section .init
|
|
||||||
- .align 5
|
|
||||||
- .global _init
|
|
||||||
- .type _init,@function
|
|
||||||
-_init:
|
|
||||||
- mov.l r12,@-r15
|
|
||||||
- mov.l r14,@-r15
|
|
||||||
- sts.l pr,@-r15
|
|
||||||
-#ifdef SHARED
|
|
||||||
- mova .L22,r0
|
|
||||||
- mov.l .L22,r12
|
|
||||||
- add r0,r12
|
|
||||||
- mova .L24,r0
|
|
||||||
- mov.l .L24,r1
|
|
||||||
- add r0,r1
|
|
||||||
- jsr @r1
|
|
||||||
- nop
|
|
||||||
- mova .L23,r0
|
|
||||||
- mov.l .L23,r1
|
|
||||||
- add r0,r1
|
|
||||||
-#else
|
|
||||||
- mov.l .L24,r1
|
|
||||||
- jsr @r1
|
|
||||||
- nop
|
|
||||||
- mov.l .L23,r1
|
|
||||||
-#endif
|
|
||||||
- jsr @r1
|
|
||||||
- mov r15,r14
|
|
||||||
- bra 1f
|
|
||||||
- nop
|
|
||||||
- .align 2
|
|
||||||
-#ifdef SHARED
|
|
||||||
-.L22:
|
|
||||||
- .long _GLOBAL_OFFSET_TABLE_
|
|
||||||
-.L23:
|
|
||||||
- .long __gmon_start__@PLT
|
|
||||||
-.L24:
|
|
||||||
- .long __pthread_initialize_minimal@PLT
|
|
||||||
-#else
|
|
||||||
-.L23:
|
|
||||||
- .long __gmon_start__
|
|
||||||
-.L24:
|
|
||||||
- .long __pthread_initialize_minimal
|
|
||||||
-#endif
|
|
||||||
- .data
|
|
||||||
- .global __fpscr_values
|
|
||||||
-__fpscr_values:
|
|
||||||
- .long 0
|
|
||||||
- .long 0x80000
|
|
||||||
- .previous
|
|
||||||
-1:
|
|
||||||
- ALIGN
|
|
||||||
- END_INIT
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-/*@_init_PROLOG_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@_init_EPILOG_BEGINS*/
|
|
||||||
- .section .init
|
|
||||||
- mov r14,r15
|
|
||||||
- lds.l @r15+,pr
|
|
||||||
- mov.l @r15+,r14
|
|
||||||
- rts
|
|
||||||
- mov.l @r15+,r12
|
|
||||||
- END_INIT
|
|
||||||
- .section .text
|
|
||||||
- .align 5
|
|
||||||
- .weak __gmon_start__
|
|
||||||
- .type __gmon_start__,@function
|
|
||||||
-__gmon_start__:
|
|
||||||
- mov.l r14,@-r15
|
|
||||||
- mov r15,r14
|
|
||||||
- mov r14,r15
|
|
||||||
- rts
|
|
||||||
- mov.l @r15+,r14
|
|
||||||
-
|
|
||||||
-/*@_init_EPILOG_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@_fini_PROLOG_BEGINS*/
|
|
||||||
- .section .fini
|
|
||||||
- .align 5
|
|
||||||
- .global _fini
|
|
||||||
- .type _fini,@function
|
|
||||||
-_fini:
|
|
||||||
- mov.l r12,@-r15
|
|
||||||
- mov.l r14,@-r15
|
|
||||||
- sts.l pr,@-r15
|
|
||||||
-#ifdef SHARED
|
|
||||||
- mova .L27,r0
|
|
||||||
- mov.l .L27,r12
|
|
||||||
- add r0,r12
|
|
||||||
-#endif
|
|
||||||
- mov r15,r14
|
|
||||||
- ALIGN
|
|
||||||
- END_FINI
|
|
||||||
-#ifdef SHARED
|
|
||||||
- bra 1f
|
|
||||||
- nop
|
|
||||||
- .align 2
|
|
||||||
-.L27:
|
|
||||||
- .long _GLOBAL_OFFSET_TABLE_
|
|
||||||
-#endif
|
|
||||||
-1:
|
|
||||||
-/*@_fini_PROLOG_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@_fini_EPILOG_BEGINS*/
|
|
||||||
- .section .fini
|
|
||||||
- mov r14,r15
|
|
||||||
- lds.l @r15+,pr
|
|
||||||
- mov.l @r15+,r14
|
|
||||||
- rts
|
|
||||||
- mov.l @r15+,r12
|
|
||||||
-
|
|
||||||
- END_FINI
|
|
||||||
-
|
|
||||||
-/*@_fini_EPILOG_ENDS*/
|
|
||||||
-
|
|
||||||
-/*@TRAILER_BEGINS*/
|
|
||||||
+__asm__ ("\n\
|
|
||||||
+\n\
|
|
||||||
+#include \"defs.h\"\n\
|
|
||||||
+#define SHARED\n\
|
|
||||||
+\n\
|
|
||||||
+/*@HEADER_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@TESTS_BEGIN*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@TESTS_END*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@_init_PROLOG_BEGINS*/\n\
|
|
||||||
+ .section .init\n\
|
|
||||||
+ .align 5\n\
|
|
||||||
+ .global _init\n\
|
|
||||||
+ .type _init,@function\n\
|
|
||||||
+_init:\n\
|
|
||||||
+ mov.l r12,@-r15\n\
|
|
||||||
+ mov.l r14,@-r15\n\
|
|
||||||
+ sts.l pr,@-r15\n\
|
|
||||||
+#ifdef SHARED\n\
|
|
||||||
+ mova .L22,r0\n\
|
|
||||||
+ mov.l .L22,r12\n\
|
|
||||||
+ add r0,r12\n\
|
|
||||||
+ mova .L24,r0\n\
|
|
||||||
+ mov.l .L24,r1\n\
|
|
||||||
+ add r0,r1\n\
|
|
||||||
+ jsr @r1\n\
|
|
||||||
+ nop\n\
|
|
||||||
+ mova .L23,r0\n\
|
|
||||||
+ mov.l .L23,r1\n\
|
|
||||||
+ add r0,r1\n\
|
|
||||||
+#else\n\
|
|
||||||
+ mov.l .L24,r1\n\
|
|
||||||
+ jsr @r1\n\
|
|
||||||
+ nop\n\
|
|
||||||
+ mov.l .L23,r1\n\
|
|
||||||
+#endif\n\
|
|
||||||
+ jsr @r1\n\
|
|
||||||
+ mov r15,r14\n\
|
|
||||||
+ bra 1f\n\
|
|
||||||
+ nop\n\
|
|
||||||
+ .align 2\n\
|
|
||||||
+#ifdef SHARED\n\
|
|
||||||
+.L22:\n\
|
|
||||||
+ .long _GLOBAL_OFFSET_TABLE_\n\
|
|
||||||
+.L23:\n\
|
|
||||||
+ .long __gmon_start__@PLT\n\
|
|
||||||
+.L24:\n\
|
|
||||||
+ .long __pthread_initialize_minimal@PLT\n\
|
|
||||||
+#else\n\
|
|
||||||
+.L23:\n\
|
|
||||||
+ .long __gmon_start__\n\
|
|
||||||
+.L24:\n\
|
|
||||||
+ .long __pthread_initialize_minimal\n\
|
|
||||||
+#endif\n\
|
|
||||||
+ .data\n\
|
|
||||||
+ .global __fpscr_values\n\
|
|
||||||
+__fpscr_values:\n\
|
|
||||||
+ .long 0\n\
|
|
||||||
+ .long 0x80000\n\
|
|
||||||
+ .previous\n\
|
|
||||||
+1:\n\
|
|
||||||
+ ALIGN\n\
|
|
||||||
+ END_INIT\n\
|
|
||||||
+\n\
|
|
||||||
+ \n\
|
|
||||||
+/*@_init_PROLOG_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@_init_EPILOG_BEGINS*/\n\
|
|
||||||
+ .section .init\n\
|
|
||||||
+ mov r14,r15\n\
|
|
||||||
+ lds.l @r15+,pr\n\
|
|
||||||
+ mov.l @r15+,r14\n\
|
|
||||||
+ rts \n\
|
|
||||||
+ mov.l @r15+,r12\n\
|
|
||||||
+ END_INIT\n\
|
|
||||||
+ .section .text\n\
|
|
||||||
+ .align 5\n\
|
|
||||||
+ .weak __gmon_start__\n\
|
|
||||||
+ .type __gmon_start__,@function\n\
|
|
||||||
+__gmon_start__:\n\
|
|
||||||
+ mov.l r14,@-r15\n\
|
|
||||||
+ mov r15,r14\n\
|
|
||||||
+ mov r14,r15\n\
|
|
||||||
+ rts \n\
|
|
||||||
+ mov.l @r15+,r14\n\
|
|
||||||
+ \n\
|
|
||||||
+/*@_init_EPILOG_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@_fini_PROLOG_BEGINS*/\n\
|
|
||||||
+ .section .fini\n\
|
|
||||||
+ .align 5\n\
|
|
||||||
+ .global _fini\n\
|
|
||||||
+ .type _fini,@function\n\
|
|
||||||
+_fini:\n\
|
|
||||||
+ mov.l r12,@-r15\n\
|
|
||||||
+ mov.l r14,@-r15\n\
|
|
||||||
+ sts.l pr,@-r15\n\
|
|
||||||
+#ifdef SHARED\n\
|
|
||||||
+ mova .L27,r0\n\
|
|
||||||
+ mov.l .L27,r12\n\
|
|
||||||
+ add r0,r12\n\
|
|
||||||
+#endif\n\
|
|
||||||
+ mov r15,r14\n\
|
|
||||||
+ ALIGN\n\
|
|
||||||
+ END_FINI\n\
|
|
||||||
+#ifdef SHARED\n\
|
|
||||||
+ bra 1f\n\
|
|
||||||
+ nop\n\
|
|
||||||
+ .align 2\n\
|
|
||||||
+.L27:\n\
|
|
||||||
+ .long _GLOBAL_OFFSET_TABLE_\n\
|
|
||||||
+#endif\n\
|
|
||||||
+1:\n\
|
|
||||||
+/*@_fini_PROLOG_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@_fini_EPILOG_BEGINS*/\n\
|
|
||||||
+ .section .fini\n\
|
|
||||||
+ mov r14,r15\n\
|
|
||||||
+ lds.l @r15+,pr\n\
|
|
||||||
+ mov.l @r15+,r14\n\
|
|
||||||
+ rts \n\
|
|
||||||
+ mov.l @r15+,r12\n\
|
|
||||||
+\n\
|
|
||||||
+ END_FINI\n\
|
|
||||||
+ \n\
|
|
||||||
+/*@_fini_EPILOG_ENDS*/\n\
|
|
||||||
+\n\
|
|
||||||
+/*@TRAILER_BEGINS*/\n\
|
|
||||||
");
|
|
@ -1,69 +0,0 @@
|
|||||||
2002-05-21 Ulrich Drepper <drepper@redhat.com>
|
|
||||||
|
|
||||||
* sysdeps/pthread/pthread.h (pthread_create): Rename first parameter.
|
|
||||||
(pthread_cancel): Likewise.
|
|
||||||
* internals.h (__pthread_create_2_1): Likewise.
|
|
||||||
* sysdeps/unix/sysv/linux/bits/sigthread.h (pthread_kill): Likewise.
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/internals.h,v
|
|
||||||
retrieving revision 1.69.2.2
|
|
||||||
retrieving revision 1.69.2.3
|
|
||||||
diff -u -r1.69.2.2 -r1.69.2.3
|
|
||||||
--- libc/linuxthreads/internals.h 2002/03/22 08:30:32 1.69.2.2
|
|
||||||
+++ libc/linuxthreads/internals.h 2002/08/20 22:01:25 1.69.2.3
|
|
||||||
@@ -554,7 +554,7 @@
|
|
||||||
/* Prototypes for compatibility functions. */
|
|
||||||
extern int __pthread_attr_init_2_1 (pthread_attr_t *__attr);
|
|
||||||
extern int __pthread_attr_init_2_0 (pthread_attr_t *__attr);
|
|
||||||
-extern int __pthread_create_2_1 (pthread_t *__restrict __thread,
|
|
||||||
+extern int __pthread_create_2_1 (pthread_t *__restrict __threadp,
|
|
||||||
const pthread_attr_t *__attr,
|
|
||||||
void *(*__start_routine) (void *),
|
|
||||||
void *__restrict __arg);
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/pthread/pthread.h,v
|
|
||||||
retrieving revision 1.31
|
|
||||||
retrieving revision 1.31.2.1
|
|
||||||
diff -u -r1.31 -r1.31.2.1
|
|
||||||
--- libc/linuxthreads/sysdeps/pthread/pthread.h 2001/03/15 21:12:31 1.31
|
|
||||||
+++ libc/linuxthreads/sysdeps/pthread/pthread.h 2002/08/20 22:01:26 1.31.2.1
|
|
||||||
@@ -160,7 +160,7 @@
|
|
||||||
/* Create a thread with given attributes ATTR (or default attributes
|
|
||||||
if ATTR is NULL), and call function START_ROUTINE with given
|
|
||||||
arguments ARG. */
|
|
||||||
-extern int pthread_create (pthread_t *__restrict __thread,
|
|
||||||
+extern int pthread_create (pthread_t *__restrict __threadp,
|
|
||||||
__const pthread_attr_t *__restrict __attr,
|
|
||||||
void *(*__start_routine) (void *),
|
|
||||||
void *__restrict __arg) __THROW;
|
|
||||||
@@ -588,7 +588,7 @@
|
|
||||||
extern int pthread_setcanceltype (int __type, int *__oldtype) __THROW;
|
|
||||||
|
|
||||||
/* Cancel THREAD immediately or at the next possibility. */
|
|
||||||
-extern int pthread_cancel (pthread_t __thread) __THROW;
|
|
||||||
+extern int pthread_cancel (pthread_t __cancelthread) __THROW;
|
|
||||||
|
|
||||||
/* Test for pending cancellation for the current thread and terminate
|
|
||||||
the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.5.2.1
|
|
||||||
diff -u -r1.5 -r1.5.2.1
|
|
||||||
--- libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2000/08/21 06:48:03 1.5
|
|
||||||
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h 2002/08/20 22:01:26 1.5.2.1
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Signal handling function for threaded programs.
|
|
||||||
- Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
|
||||||
@@ -33,6 +33,6 @@
|
|
||||||
__sigset_t *__restrict __oldmask)__THROW;
|
|
||||||
|
|
||||||
/* Send signal SIGNO to the given thread. */
|
|
||||||
-extern int pthread_kill (pthread_t __thread, int __signo) __THROW;
|
|
||||||
+extern int pthread_kill (pthread_t __threadid, int __signo) __THROW;
|
|
||||||
|
|
||||||
#endif /* bits/sigthread.h */
|
|
@ -1,136 +0,0 @@
|
|||||||
Retrieved with
|
|
||||||
$ 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'
|
|
||||||
$ 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'
|
|
||||||
|
|
||||||
Might fix problem building with binutils-2.14.90.0.8/gcc-3.3.3 that was not
|
|
||||||
present with binutils-2.13.90.0.18/gcc-3.3.2:
|
|
||||||
|
|
||||||
../linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S: Assembler messages:
|
|
||||||
../linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S:63: Warning: .ent
|
|
||||||
directive without matching .end
|
|
||||||
../linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S:63: Error: can't resolve
|
|
||||||
`0' {.text section} - `L0^A' {.text section}
|
|
||||||
make[2]: ***
|
|
||||||
[/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]
|
|
||||||
Error 1
|
|
||||||
make[2]: Leaving directory
|
|
||||||
`/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'
|
|
||||||
make[1]: *** [posix/subdir_lib] Error 2
|
|
||||||
make[1]: Leaving directory
|
|
||||||
`/home/dkegel/wk/crosstool-0.26-pre3/build/alpha-unknown-linux-gnu/gcc-3.3-20040112-glibc-2.3.2/glibc-2.3.2'
|
|
||||||
make: *** [all] Error 2
|
|
||||||
|
|
||||||
See also alpha_cfi2.patch
|
|
||||||
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S 2003/02/11 06:27:53 1.5
|
|
||||||
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S 2003/06/06 05:51:03 1.6
|
|
||||||
@@ -19,12 +19,13 @@
|
|
||||||
|
|
||||||
#include <sysdep-cancel.h>
|
|
||||||
|
|
||||||
- .globl __vfork
|
|
||||||
.align 4
|
|
||||||
- .ent __vfork,0
|
|
||||||
-__LABEL(__vfork)
|
|
||||||
+ .globl __vfork
|
|
||||||
+ .type __vfork, @function
|
|
||||||
+ .usepv __vfork, std
|
|
||||||
+ cfi_startproc
|
|
||||||
+__vfork:
|
|
||||||
ldgp gp, 0(pv)
|
|
||||||
- .prologue 1
|
|
||||||
PSEUDO_PROF
|
|
||||||
|
|
||||||
#ifdef SHARED
|
|
||||||
@@ -46,18 +47,24 @@
|
|
||||||
fork and vfork object files. */
|
|
||||||
$do_fork:
|
|
||||||
subq sp, 16, sp
|
|
||||||
+ cfi_adjust_cfa_offset(16)
|
|
||||||
stq ra, 0(sp)
|
|
||||||
+ cfi_offset(ra, -16)
|
|
||||||
jsr ra, HIDDEN_JUMPTARGET (__fork)
|
|
||||||
ldgp gp, 0(ra)
|
|
||||||
ldq ra, 0(sp)
|
|
||||||
addq sp, 16, sp
|
|
||||||
+ cfi_restore(ra)
|
|
||||||
+ cfi_adjust_cfa_offset(-16)
|
|
||||||
ret
|
|
||||||
|
|
||||||
$syscall_error:
|
|
||||||
SYSCALL_ERROR_HANDLER
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-PSEUDO_END(__vfork)
|
|
||||||
+ cfi_endproc
|
|
||||||
+ .size __vfork, .-__vfork
|
|
||||||
+
|
|
||||||
libc_hidden_def (__vfork)
|
|
||||||
|
|
||||||
weak_alias (__vfork, vfork)
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h 2003/01/12 19:26:41 1.3
|
|
||||||
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h 2003/06/06 05:51:03 1.4
|
|
||||||
@@ -40,10 +40,11 @@
|
|
||||||
# define PSEUDO(name, syscall_name, args) \
|
|
||||||
.globl name; \
|
|
||||||
.align 4; \
|
|
||||||
- .ent name, 0; \
|
|
||||||
+ .type name, @function; \
|
|
||||||
+ .usepv name, std; \
|
|
||||||
+ cfi_startproc; \
|
|
||||||
__LABEL(name) \
|
|
||||||
ldgp gp, 0(pv); \
|
|
||||||
- .prologue 1; \
|
|
||||||
PSEUDO_PROF; \
|
|
||||||
PSEUDO_PREPARE_ARGS \
|
|
||||||
SINGLE_THREAD_P(t0); \
|
|
||||||
@@ -55,7 +56,9 @@
|
|
||||||
.subsection 2; \
|
|
||||||
__LABEL($pseudo_cancel) \
|
|
||||||
subq sp, 64, sp; \
|
|
||||||
+ cfi_def_cfa_offset(64); \
|
|
||||||
stq ra, 0(sp); \
|
|
||||||
+ cfi_offset(ra, -64); \
|
|
||||||
SAVE_ARGS_##args; \
|
|
||||||
CENABLE; \
|
|
||||||
LOAD_ARGS_##args; \
|
|
||||||
@@ -67,19 +70,27 @@
|
|
||||||
ldq ra, 0(sp); \
|
|
||||||
ldq v0, 8(sp); \
|
|
||||||
addq sp, 64, sp; \
|
|
||||||
+ cfi_remember_state; \
|
|
||||||
+ cfi_restore(ra); \
|
|
||||||
+ cfi_def_cfa_offset(0); \
|
|
||||||
ret; \
|
|
||||||
+ cfi_restore_state; \
|
|
||||||
__LABEL($multi_error) \
|
|
||||||
CDISABLE; \
|
|
||||||
ldq ra, 0(sp); \
|
|
||||||
ldq v0, 8(sp); \
|
|
||||||
addq sp, 64, sp; \
|
|
||||||
+ cfi_restore(ra); \
|
|
||||||
+ cfi_def_cfa_offset(0); \
|
|
||||||
__LABEL($syscall_error) \
|
|
||||||
SYSCALL_ERROR_HANDLER; \
|
|
||||||
- END(name); \
|
|
||||||
.previous
|
|
||||||
|
|
||||||
# undef PSEUDO_END
|
|
||||||
-# define PSEUDO_END(sym)
|
|
||||||
+# define PSEUDO_END(sym) \
|
|
||||||
+ .subsection 2; \
|
|
||||||
+ cfi_endproc; \
|
|
||||||
+ .size sym, .-sym
|
|
||||||
|
|
||||||
# define SAVE_ARGS_0 /* Nothing. */
|
|
||||||
# define SAVE_ARGS_1 SAVE_ARGS_0; stq a0, 8(sp)
|
|
@ -1,118 +0,0 @@
|
|||||||
See http://sources.redhat.com/ml/libc-alpha/2004-05/msg00110.html
|
|
||||||
|
|
||||||
Both his patches pulled into this file
|
|
||||||
|
|
||||||
Should fix
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Assembler messages:
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_startproc'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_def_cfa_offset'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: missing ')'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: syntax error
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_remember_state'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_restore'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_def_cfa_offset'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_restore_state'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_restore'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:28: Error: unknown opcode `cfi_def_cfa_offset'
|
|
||||||
../sysdeps/unix/sysv/linux/alpha/sigsuspend.S:30: Error: unknown opcode `cfi_endproc'
|
|
||||||
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
|
|
||||||
|
|
||||||
when building with binutils-2.15.90.0.3 and gcc-3.4.0
|
|
||||||
|
|
||||||
--- glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h.orig 2004-05-13 00:33:54.000000000 -0400
|
|
||||||
+++ glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h 2004-05-13 00:34:19.000000000 -0400
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
.align 4; \
|
|
||||||
.type name, @function; \
|
|
||||||
.usepv name, std; \
|
|
||||||
- cfi_startproc; \
|
|
||||||
+ .cfi_startproc; \
|
|
||||||
__LABEL(name) \
|
|
||||||
ldgp gp, 0(pv); \
|
|
||||||
PSEUDO_PROF; \
|
|
||||||
@@ -56,9 +56,9 @@
|
|
||||||
.subsection 2; \
|
|
||||||
__LABEL($pseudo_cancel) \
|
|
||||||
subq sp, 64, sp; \
|
|
||||||
- cfi_def_cfa_offset(64); \
|
|
||||||
+ .cfi_def_cfa_offset(64); \
|
|
||||||
stq ra, 0(sp); \
|
|
||||||
- cfi_offset(ra, -64); \
|
|
||||||
+ .cfi_offset ra, -64; \
|
|
||||||
SAVE_ARGS_##args; \
|
|
||||||
CENABLE; \
|
|
||||||
LOAD_ARGS_##args; \
|
|
||||||
@@ -70,18 +70,18 @@
|
|
||||||
ldq ra, 0(sp); \
|
|
||||||
ldq v0, 8(sp); \
|
|
||||||
addq sp, 64, sp; \
|
|
||||||
- cfi_remember_state; \
|
|
||||||
- cfi_restore(ra); \
|
|
||||||
- cfi_def_cfa_offset(0); \
|
|
||||||
+ .cfi_remember_state; \
|
|
||||||
+ .cfi_restore(ra); \
|
|
||||||
+ .cfi_def_cfa_offset(0); \
|
|
||||||
ret; \
|
|
||||||
- cfi_restore_state; \
|
|
||||||
+ .cfi_restore_state; \
|
|
||||||
__LABEL($multi_error) \
|
|
||||||
CDISABLE; \
|
|
||||||
ldq ra, 0(sp); \
|
|
||||||
ldq v0, 8(sp); \
|
|
||||||
addq sp, 64, sp; \
|
|
||||||
- cfi_restore(ra); \
|
|
||||||
- cfi_def_cfa_offset(0); \
|
|
||||||
+ .cfi_restore(ra); \
|
|
||||||
+ .cfi_def_cfa_offset(0); \
|
|
||||||
__LABEL($syscall_error) \
|
|
||||||
SYSCALL_ERROR_HANDLER; \
|
|
||||||
.previous
|
|
||||||
@@ -89,7 +89,7 @@
|
|
||||||
# undef PSEUDO_END
|
|
||||||
# define PSEUDO_END(sym) \
|
|
||||||
.subsection 2; \
|
|
||||||
- cfi_endproc; \
|
|
||||||
+ .cfi_endproc; \
|
|
||||||
.size sym, .-sym
|
|
||||||
|
|
||||||
# define SAVE_ARGS_0 /* Nothing. */
|
|
||||||
|
|
||||||
--- glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S.orig 2004-05-13 01:47:46.000000000 -0400
|
|
||||||
+++ glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S 2004-05-13 01:48:17.000000000 -0400
|
|
||||||
@@ -23,7 +23,7 @@
|
|
||||||
.globl __vfork
|
|
||||||
.type __vfork, @function
|
|
||||||
.usepv __vfork, std
|
|
||||||
- cfi_startproc
|
|
||||||
+ .cfi_startproc
|
|
||||||
__vfork:
|
|
||||||
ldgp gp, 0(pv)
|
|
||||||
PSEUDO_PROF
|
|
||||||
@@ -47,22 +47,22 @@
|
|
||||||
fork and vfork object files. */
|
|
||||||
$do_fork:
|
|
||||||
subq sp, 16, sp
|
|
||||||
- cfi_adjust_cfa_offset(16)
|
|
||||||
+ .cfi_adjust_cfa_offset(16)
|
|
||||||
stq ra, 0(sp)
|
|
||||||
- cfi_offset(ra, -16)
|
|
||||||
+ .cfi_offset ra, -16
|
|
||||||
jsr ra, HIDDEN_JUMPTARGET (__fork)
|
|
||||||
ldgp gp, 0(ra)
|
|
||||||
ldq ra, 0(sp)
|
|
||||||
addq sp, 16, sp
|
|
||||||
- cfi_restore(ra)
|
|
||||||
- cfi_adjust_cfa_offset(-16)
|
|
||||||
+ .cfi_restore(ra)
|
|
||||||
+ .cfi_adjust_cfa_offset(-16)
|
|
||||||
ret
|
|
||||||
|
|
||||||
$syscall_error:
|
|
||||||
SYSCALL_ERROR_HANDLER
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- cfi_endproc
|
|
||||||
+ .cfi_endproc
|
|
||||||
.size __vfork, .-__vfork
|
|
||||||
|
|
||||||
libc_hidden_def (__vfork)
|
|
@ -1,26 +0,0 @@
|
|||||||
From: "M.H.VanLeeuwen"
|
|
||||||
Subject: crosstool, sparc64, linux 2.6.4, gcc 3.3.3, glibc 2.3.2 success
|
|
||||||
Date: Mon, 15 Mar 2004 00:23:04 -0600
|
|
||||||
To: crossgcc@sources.redhat.com
|
|
||||||
Message-ID: <40554BC8.749A5EC3@megsinet.net>
|
|
||||||
...
|
|
||||||
|
|
||||||
backported from GLIBC CVS
|
|
||||||
|
|
||||||
Fix this error:
|
|
||||||
|
|
||||||
/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':
|
|
||||||
: undefined reference to `__sigprocmask'
|
|
||||||
collect2: ld returned 1 exit status
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
--- /cross/sources/glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile Wed Dec 31 18:00:00 1969
|
|
||||||
+++ glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile Sat Mar 13 10:18:43 2004
|
|
||||||
@@ -0,0 +1,5 @@
|
|
||||||
+# glibc makefile fragment for linuxthreads on sparc/sparc64.
|
|
||||||
+
|
|
||||||
+ifeq ($(subdir),linuxthreads)
|
|
||||||
+libpthread-routines += ptw-sigprocmask
|
|
||||||
+endif
|
|
||||||
|
|
@ -1,100 +0,0 @@
|
|||||||
[ Revised; now also changes CFLAGS-pt-initfini.s as suggested by
|
|
||||||
http://sources.redhat.com/ml/crossgcc/2004-07/msg00169.html
|
|
||||||
to not crash when building a debug glibc on mips ]
|
|
||||||
|
|
||||||
Fixes errors like
|
|
||||||
|
|
||||||
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'
|
|
||||||
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
|
|
||||||
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'
|
|
||||||
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
|
|
||||||
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'
|
|
||||||
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
|
|
||||||
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'
|
|
||||||
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'
|
|
||||||
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'
|
|
||||||
collect2: ld returned 1 exit status
|
|
||||||
make[2]: *** [build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/linuxthreads/libpthread.so] Error 1
|
|
||||||
make[2]: Leaving directory `build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/glibc-2.3.2/linuxthreads'
|
|
||||||
make[1]: *** [linuxthreads/others] Error 2
|
|
||||||
make[1]: Leaving directory `build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/glibc-2.3.2'
|
|
||||||
make: *** [all] Error 2
|
|
||||||
|
|
||||||
|
|
||||||
CVSROOT: /cvs/glibc
|
|
||||||
Module name: libc
|
|
||||||
Changes by: aj@sourceware.org 2003-12-02 07:37:29
|
|
||||||
|
|
||||||
Modified files:
|
|
||||||
. : configure.in configure config.make.in
|
|
||||||
csu : Makefile
|
|
||||||
locale : Makefile
|
|
||||||
linuxthreads : Makefile
|
|
||||||
linuxthreads/sysdeps/unix/sysv/linux/x86_64: Makefile
|
|
||||||
nptl : Makefile
|
|
||||||
nptl/sysdeps/unix/sysv/linux/x86_64: Makefile
|
|
||||||
|
|
||||||
Log message:
|
|
||||||
* config.make.in (fno-unit-at-a-time): Define.
|
|
||||||
|
|
||||||
* configure.in: Add test for -fno-unit-at-a-time.
|
|
||||||
Fix text for -fpie.
|
|
||||||
|
|
||||||
* csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
|
|
||||||
* locale/Makefile (CFLAGS-loadlocale.c): Likewise.
|
|
||||||
|
|
||||||
For linuxthreads:
|
|
||||||
* Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
|
|
||||||
Likewise.
|
|
||||||
|
|
||||||
For nptl:
|
|
||||||
* Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
|
|
||||||
Likewise.
|
|
||||||
|
|
||||||
linuxthreads change retrieved with
|
|
||||||
wget -O foo.patch 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/Makefile.diff?r1=1.83&r2=1.84&cvsroot=glibc' \
|
|
||||||
'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'
|
|
||||||
|
|
||||||
and then rediffed against glibc-2.3.2
|
|
||||||
And then extended to mips...
|
|
||||||
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/Makefile,v
|
|
||||||
retrieving revision 1.83
|
|
||||||
retrieving revision 1.84
|
|
||||||
diff -u -r1.83 -r1.84
|
|
||||||
--- libc/linuxthreads/Makefile 2003/10/02 18:48:48 1.83
|
|
||||||
+++ libc/linuxthreads/Makefile 2003/12/02 07:37:28 1.84
|
|
||||||
@@ -101,7 +101,7 @@
|
|
||||||
extra-objs += $(crti-objs) $(crtn-objs)
|
|
||||||
omit-deps += crti crtn
|
|
||||||
|
|
||||||
-CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions
|
|
||||||
+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
|
|
||||||
endif
|
|
||||||
|
|
||||||
librt-tests = ex10 ex11
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile,v
|
|
||||||
retrieving revision 1.5
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.5 -r1.6
|
|
||||||
--- libc/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile 2003/04/11 23:34:02 1.5
|
|
||||||
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile 2003/12/02 07:37:28 1.6
|
|
||||||
@@ -1,3 +1,4 @@
|
|
||||||
ifeq ($(subdir),linuxthreads)
|
|
||||||
-CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions -fno-asynchronous-unwind-tables
|
|
||||||
+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions \
|
|
||||||
+ -fno-asynchronous-unwind-tables $(fno-unit-at-a-time)
|
|
||||||
endif
|
|
||||||
--- glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/mips/Makefile.old 2004-05-30 18:24:41.000000000 -0700
|
|
||||||
+++ glibc-2.3.2/linuxthreads/sysdeps/unix/sysv/linux/mips/Makefile 2004-05-30 18:28:03.000000000 -0700
|
|
||||||
@@ -1,2 +1,6 @@
|
|
||||||
# pull in __syscall_error routine
|
|
||||||
libpthread-routines += sysdep
|
|
||||||
+
|
|
||||||
+ifeq ($(subdir),linuxthreads)
|
|
||||||
+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
|
|
||||||
+endif
|
|
@ -1,30 +0,0 @@
|
|||||||
Goes with ../glibc-2.3.2/glibc-2.3.2-cygwin.patch
|
|
||||||
|
|
||||||
If you apply the above patch, but forget this one, you get a cryptic error
|
|
||||||
.../bin/../x86_64-unknown-linux-gnu/sys-root/usr/lib64/: file not recognized: Is a directory
|
|
||||||
when linking with -lpthread, because the generated libpthread.so
|
|
||||||
is missing a filename
|
|
||||||
|
|
||||||
by dank@kegel.com, 2004 Mar 30
|
|
||||||
|
|
||||||
|
|
||||||
--- glibc-linuxthreads-2.3.2/linuxthreads/Makefile.old Tue Mar 30 10:33:12 2004
|
|
||||||
+++ glibc-linuxthreads-2.3.2/linuxthreads/Makefile Tue Mar 30 10:33:24 2004
|
|
||||||
@@ -114,7 +114,7 @@
|
|
||||||
install: $(inst_libdir)/libpthread.so
|
|
||||||
$(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
|
|
||||||
$(objpfx)libpthread.so$(libpthread.so-version) \
|
|
||||||
- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
|
|
||||||
+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
|
|
||||||
$(libprefix)pthread) \
|
|
||||||
$(+force)
|
|
||||||
(echo '/* GNU ld script';\
|
|
||||||
@@ -122,7 +122,7 @@
|
|
||||||
echo ' the static library, so try that secondarily. */';\
|
|
||||||
cat $<; \
|
|
||||||
echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
|
|
||||||
- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
|
|
||||||
+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
|
|
||||||
')' \
|
|
||||||
) > $@.new
|
|
||||||
mv -f $@.new $@
|
|
@ -1,53 +0,0 @@
|
|||||||
I haven't built glibc-2.3.2 for arm myself, but
|
|
||||||
http://sources.redhat.com/ml/bug-glibc/2003-05/msg00076.html and
|
|
||||||
http://www.linux.org.uk/pipermail/linux-arm/2003-November/006560.html
|
|
||||||
give me the distinct impression that you need the latest sysdep-cancel.h from
|
|
||||||
cvs.
|
|
||||||
|
|
||||||
Retrieved with
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h,v
|
|
||||||
retrieving revision 1.2
|
|
||||||
retrieving revision 1.6
|
|
||||||
diff -u -r1.2 -r1.6
|
|
||||||
--- libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h 2003/01/12 09:14:25 1.2
|
|
||||||
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h 2003/06/06 17:31:40 1.6
|
|
||||||
@@ -24,6 +24,17 @@
|
|
||||||
|
|
||||||
#if !defined NOT_IN_libc || defined IS_IN_libpthread
|
|
||||||
|
|
||||||
+/* We push lr onto the stack, so we have to use ldmib instead of ldmia
|
|
||||||
+ to find the saved arguments. */
|
|
||||||
+# ifdef PIC
|
|
||||||
+# undef DOARGS_5
|
|
||||||
+# undef DOARGS_6
|
|
||||||
+# undef DOARGS_7
|
|
||||||
+# define DOARGS_5 str r4, [sp, $-4]!; ldr r4, [sp, $8];
|
|
||||||
+# define DOARGS_6 mov ip, sp; stmfd sp!, {r4, r5}; ldmib ip, {r4, r5};
|
|
||||||
+# define DOARGS_7 mov ip, sp; stmfd sp!, {r4, r5, r6}; ldmib ip, {r4, r5, r6};
|
|
||||||
+# endif
|
|
||||||
+
|
|
||||||
# undef PSEUDO_RET
|
|
||||||
# define PSEUDO_RET \
|
|
||||||
ldrcc pc, [sp], $4; \
|
|
||||||
@@ -34,7 +45,7 @@
|
|
||||||
# define PSEUDO(name, syscall_name, args) \
|
|
||||||
.section ".text"; \
|
|
||||||
PSEUDO_PROLOGUE; \
|
|
||||||
- ENTRY (name) \
|
|
||||||
+ ENTRY (name); \
|
|
||||||
SINGLE_THREAD_P_INT; \
|
|
||||||
bne .Lpseudo_cancel; \
|
|
||||||
DO_CALL (syscall_name, args); \
|
|
||||||
@@ -110,7 +121,7 @@
|
|
||||||
ldr reg, 2b; \
|
|
||||||
3: \
|
|
||||||
add ip, pc, ip; \
|
|
||||||
- ldr ip, [ip, lr]; \
|
|
||||||
+ ldr ip, [ip, reg]; \
|
|
||||||
teq ip, #0;
|
|
||||||
# define SINGLE_THREAD_P_INT \
|
|
||||||
str lr, [sp, $-4]!; \
|
|
@ -1,36 +0,0 @@
|
|||||||
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'
|
|
||||||
|
|
||||||
Revision 1.4, Wed Dec 10 05:46:41 2003 UTC (8 months, 1 week ago) by aj
|
|
||||||
(__asm__): Remove extra .prologue.
|
|
||||||
|
|
||||||
Fixes error
|
|
||||||
|
|
||||||
crosstool-0.28-rc34/build/alpha-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/build-glibc/linuxthreads/crti.S: Assembler messages:
|
|
||||||
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
|
|
||||||
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
|
|
||||||
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'
|
|
||||||
|
|
||||||
when building with gcc-3.4.1
|
|
||||||
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/alpha/elf/pt-initfini.c,v
|
|
||||||
retrieving revision 1.3
|
|
||||||
retrieving revision 1.4
|
|
||||||
diff -u -r1.3 -r1.4
|
|
||||||
--- libc/linuxthreads/sysdeps/alpha/elf/pt-initfini.c 2003/07/05 22:56:39 1.3
|
|
||||||
+++ libc/linuxthreads/sysdeps/alpha/elf/pt-initfini.c 2003/12/10 05:46:41 1.4
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/* Special .init and .fini section support for Alpha. Linuxthreads version.
|
|
||||||
- Copyright (C) 2002 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
|
||||||
@@ -75,7 +75,6 @@
|
|
||||||
subq $30, 16, $30 \n\
|
|
||||||
stq $26, 0($30) \n\
|
|
||||||
stq $29, 8($30) \n\
|
|
||||||
- .prologue 1 \n\
|
|
||||||
.align 3 \n\
|
|
||||||
/*@_fini_PROLOG_ENDS*/ \n\
|
|
||||||
\n\
|
|
@ -1,38 +0,0 @@
|
|||||||
Fixes
|
|
||||||
elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
|
|
||||||
...
|
|
||||||
when building glibc-2.3.3 on cygwin
|
|
||||||
|
|
||||||
Idea from
|
|
||||||
http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
|
|
||||||
Basically, make glibc use .oST as suffix for 'object static'
|
|
||||||
instead of .oS, since cygwin has trouble distinguishing .os from .oS
|
|
||||||
(Original patch had .on, but .oST is more mnemonic for 'object static')
|
|
||||||
|
|
||||||
glibc-linuxthreads-2.3.3 also requires a patch, see
|
|
||||||
../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
|
|
||||||
|
|
||||||
[ rediffed against glibc-2.3.3 ]
|
|
||||||
|
|
||||||
|
|
||||||
diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile
|
|
||||||
--- glibc-linuxthreads-2.3.3/linuxthreads/Makefile 2004-08-27 20:38:40.000000000 -0700
|
|
||||||
+++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile 2003-10-02 11:48:48.000000000 -0700
|
|
||||||
@@ -156,7 +156,7 @@
|
|
||||||
install: $(inst_libdir)/libpthread.so
|
|
||||||
$(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
|
|
||||||
$(objpfx)libpthread.so$(libpthread.so-version) \
|
|
||||||
- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
|
|
||||||
+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
|
|
||||||
$(libprefix)pthread) \
|
|
||||||
$(+force)
|
|
||||||
(echo '/* GNU ld script';\
|
|
||||||
@@ -164,7 +164,7 @@
|
|
||||||
echo ' the static library, so try that secondarily. */';\
|
|
||||||
cat $<; \
|
|
||||||
echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
|
|
||||||
- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
|
|
||||||
+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
|
|
||||||
')' \
|
|
||||||
) > $@.new
|
|
||||||
mv -f $@.new $@
|
|
@ -1,38 +0,0 @@
|
|||||||
Fixes
|
|
||||||
elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
|
|
||||||
...
|
|
||||||
when building glibc-2.3.3 on cygwin
|
|
||||||
|
|
||||||
Idea from
|
|
||||||
http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
|
|
||||||
Basically, make glibc use .oST as suffix for 'object static'
|
|
||||||
instead of .oS, since cygwin has trouble distinguishing .os from .oS
|
|
||||||
(Original patch had .on, but .oST is more mnemonic for 'object static')
|
|
||||||
|
|
||||||
glibc-linuxthreads-2.3.3 also requires a patch, see
|
|
||||||
../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
|
|
||||||
|
|
||||||
[ rediffed against glibc-2.3.3 ]
|
|
||||||
|
|
||||||
|
|
||||||
diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile
|
|
||||||
--- glibc-linuxthreads-2.3.3/linuxthreads/Makefile 2004-08-27 20:38:40.000000000 -0700
|
|
||||||
+++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile 2003-10-02 11:48:48.000000000 -0700
|
|
||||||
@@ -156,7 +156,7 @@
|
|
||||||
install: $(inst_libdir)/libpthread.so
|
|
||||||
$(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
|
|
||||||
$(objpfx)libpthread.so$(libpthread.so-version) \
|
|
||||||
- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
|
|
||||||
+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
|
|
||||||
$(libprefix)pthread) \
|
|
||||||
$(+force)
|
|
||||||
(echo '/* GNU ld script';\
|
|
||||||
@@ -164,7 +164,7 @@
|
|
||||||
echo ' the static library, so try that secondarily. */';\
|
|
||||||
cat $<; \
|
|
||||||
echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
|
|
||||||
- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
|
|
||||||
+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
|
|
||||||
')' \
|
|
||||||
) > $@.new
|
|
||||||
mv -f $@.new $@
|
|
@ -1,89 +0,0 @@
|
|||||||
See http://sources.redhat.com/ml/libc-hacker/2005-03/msg00008.html
|
|
||||||
|
|
||||||
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
|
|
||||||
Return-Path: <libc-hacker-return-8343-listarch-libc-hacker=sources dot redhat dot com at sources dot redhat dot com>
|
|
||||||
Delivered-To: listarch-libc-hacker at sources dot redhat dot com
|
|
||||||
Received: (qmail 23370 invoked by alias); 5 Mar 2005 09:21:15 -0000
|
|
||||||
Mailing-List: contact libc-hacker-help at sources dot redhat dot com; run by ezmlm
|
|
||||||
Precedence: bulk
|
|
||||||
List-Subscribe: <mailto:libc-hacker-subscribe at sources dot redhat dot com>
|
|
||||||
List-Archive: <http://sources.redhat.com/ml/libc-hacker/>
|
|
||||||
List-Post: <mailto:libc-hacker at sources dot redhat dot com>
|
|
||||||
List-Help: <mailto:libc-hacker-help at sources dot redhat dot com>, <http://sources dot redhat dot com/ml/#faqs>
|
|
||||||
Sender: libc-hacker-owner at sources dot redhat dot com
|
|
||||||
Delivered-To: mailing list libc-hacker at sources dot redhat dot com
|
|
||||||
Received: (qmail 22971 invoked from network); 5 Mar 2005 09:20:51 -0000
|
|
||||||
Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.15.26)
|
|
||||||
by sourceware dot org with SMTP; 5 Mar 2005 09:20:51 -0000
|
|
||||||
Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1])
|
|
||||||
by sunsite dot mff dot cuni dot cz (8 dot 13 dot 1/8 dot 13 dot 1) with ESMTP id j259KoB5020894;
|
|
||||||
Sat, 5 Mar 2005 10:20:50 +0100
|
|
||||||
Received: (from jj@localhost)
|
|
||||||
by sunsite dot mff dot cuni dot cz (8 dot 13 dot 1/8 dot 13 dot 1/Submit) id j259KnO1020889;
|
|
||||||
Sat, 5 Mar 2005 10:20:49 +0100
|
|
||||||
Date: Sat, 5 Mar 2005 10:20:49 +0100
|
|
||||||
From: Jakub Jelinek <jakub at redhat dot com>
|
|
||||||
To: Ulrich Drepper <drepper at redhat dot com>, Roland McGrath <roland at redhat dot com>
|
|
||||||
Cc: Glibc hackers <libc-hacker at sources dot redhat dot com>
|
|
||||||
Subject: [PATCH] Fix build with GCC 4
|
|
||||||
Message-ID: <20050305092049.GJ4777@sunsite.mff.cuni.cz>
|
|
||||||
Reply-To: Jakub Jelinek <jakub at redhat dot com>
|
|
||||||
Mime-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=us-ascii
|
|
||||||
Content-Disposition: inline
|
|
||||||
User-Agent: Mutt/1.4.1i
|
|
||||||
|
|
||||||
Hi!
|
|
||||||
|
|
||||||
The thread_offsetof change just mirrors what Alan Modra did to NPTL
|
|
||||||
tcb-offsets.sym. Apparently for GCC 4 an offsetof like expression,
|
|
||||||
but not really offsetof, is no longer constant folded and therefore
|
|
||||||
not suitable for "i" constraint.
|
|
||||||
|
|
||||||
The ELF_MACHINE_NO_RELA change is needed to avoid
|
|
||||||
rtld.c: In function '_dl_start':
|
|
||||||
dynamic-link.h:50: error: nested function 'elf_machine_rela_relative' declared but never defined
|
|
||||||
dynamic-link.h:47: error: nested function 'elf_machine_rela' declared but never defined
|
|
||||||
This is what happens.
|
|
||||||
rtld.c first includes dl-machine.h without RESOLVE_MAP
|
|
||||||
and without RTLD_BOOTSTRAP defined. This means that ELF_MACHINE_NO_RELA
|
|
||||||
is not defined on i386/arm. Later on it defines RESOLVE_MAP
|
|
||||||
and RTLD_BOOTSTRAP and includes dynamic-link.h which has:
|
|
||||||
# if ! ELF_MACHINE_NO_RELA
|
|
||||||
auto void __attribute__((always_inline))
|
|
||||||
elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
|
|
||||||
const ElfW(Sym) *sym, const struct r_found_version *version,
|
|
||||||
void *const reloc_addr);
|
|
||||||
auto void __attribute__((always_inline))
|
|
||||||
elf_machine_rela_relative (ElfW(Addr) l_addr, const ElfW(Rela) *reloc,
|
|
||||||
void *const reloc_addr);
|
|
||||||
# endif
|
|
||||||
and later on includes dl-machine.h which sees RTLD_BOOTSTRAP is
|
|
||||||
defined and defines ELF_MACHINE_NO_RELA and doesn't define
|
|
||||||
elf_machine_rela* nested functions.
|
|
||||||
But the prototypes were already defined and GCC 4 doesn't like this.
|
|
||||||
ELF_MACHINE_NO_RELA is only ever used in preprocessing conditionals
|
|
||||||
and never in defined ELF_MACHINE_NO_RELA, so the trick below
|
|
||||||
already defines ELF_MACHINE_NO_RELA to 1/0 depending on whether
|
|
||||||
RTLD_BOOTSTRAP is defined and thus the prototypes in dynamic-link.h
|
|
||||||
that are not desirable are gone.
|
|
||||||
|
|
||||||
2005-03-05 Jakub Jelinek <jakub@redhat.com>
|
|
||||||
|
|
||||||
* sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
|
|
||||||
unconditionally to (defined RTLD_BOOTSTRAP).
|
|
||||||
* sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
|
|
||||||
linuxthreads/
|
|
||||||
* sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Rework for GCC 4.
|
|
||||||
|
|
||||||
--- libc/linuxthreads/sysdeps/powerpc/tcb-offsets.sym.jj 2005-03-04 14:21:29.000000000 -0500
|
|
||||||
+++ libc/linuxthreads/sysdeps/powerpc/tcb-offsets.sym 2005-03-04 14:26:29.000000000 -0500
|
|
||||||
@@ -8,7 +8,7 @@
|
|
||||||
-- Abuse tls.h macros to derive offsets relative to the thread register.
|
|
||||||
# undef __thread_register
|
|
||||||
# define __thread_register ((void *) 0)
|
|
||||||
-# define thread_offsetof(mem) ((void *) &THREAD_SELF->p_##mem - (void *) 0)
|
|
||||||
+# define thread_offsetof(mem) ((ptrdiff_t) THREAD_SELF + offsetof (struct _pthread_descr_struct, p_##mem))
|
|
||||||
|
|
||||||
# else
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
|||||||
Fixes
|
|
||||||
elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
|
|
||||||
...
|
|
||||||
when building glibc-2.3.3 on cygwin
|
|
||||||
|
|
||||||
Idea from
|
|
||||||
http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
|
|
||||||
Basically, make glibc use .oST as suffix for 'object static'
|
|
||||||
instead of .oS, since cygwin has trouble distinguishing .os from .oS
|
|
||||||
(Original patch had .on, but .oST is more mnemonic for 'object static')
|
|
||||||
|
|
||||||
glibc-linuxthreads-2.3.3 also requires a patch, see
|
|
||||||
../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
|
|
||||||
|
|
||||||
[ rediffed against glibc-2.3.5 ]
|
|
||||||
|
|
||||||
diff -aur glibc-2.3.5/linuxthreads/Makefile glibc-2.3.5-cygwin/linuxthreads/Makefile
|
|
||||||
--- glibc-2.3.5/linuxthreads/Makefile 2005-02-16 12:26:38.000000000 +0100
|
|
||||||
+++ glibc-2.3.5-cygwin/linuxthreads/Makefile 2005-05-11 08:32:50.453125000 +0200
|
|
||||||
@@ -159,7 +159,7 @@
|
|
||||||
install: $(inst_libdir)/libpthread.so
|
|
||||||
$(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
|
|
||||||
$(objpfx)libpthread.so$(libpthread.so-version) \
|
|
||||||
- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
|
|
||||||
+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
|
|
||||||
$(libprefix)pthread) \
|
|
||||||
$(+force)
|
|
||||||
(echo '/* GNU ld script';\
|
|
||||||
@@ -167,7 +167,7 @@
|
|
||||||
echo ' the static library, so try that secondarily. */';\
|
|
||||||
cat $<; \
|
|
||||||
echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
|
|
||||||
- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
|
|
||||||
+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
|
|
||||||
')' \
|
|
||||||
) > $@.new
|
|
||||||
mv -f $@.new $@
|
|
@ -1,38 +0,0 @@
|
|||||||
Fixes
|
|
||||||
elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
|
|
||||||
...
|
|
||||||
when building glibc-2.3.3 on cygwin
|
|
||||||
|
|
||||||
Idea from
|
|
||||||
http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
|
|
||||||
Basically, make glibc use .oST as suffix for 'object static'
|
|
||||||
instead of .oS, since cygwin has trouble distinguishing .os from .oS
|
|
||||||
(Original patch had .on, but .oST is more mnemonic for 'object static')
|
|
||||||
|
|
||||||
glibc-linuxthreads-2.3.3 also requires a patch, see
|
|
||||||
../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
|
|
||||||
|
|
||||||
[ rediffed against glibc-2.3.3 ]
|
|
||||||
|
|
||||||
|
|
||||||
diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile
|
|
||||||
--- glibc-linuxthreads-2.3.3/linuxthreads/Makefile 2004-08-27 20:38:40.000000000 -0700
|
|
||||||
+++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile 2003-10-02 11:48:48.000000000 -0700
|
|
||||||
@@ -156,7 +156,7 @@
|
|
||||||
install: $(inst_libdir)/libpthread.so
|
|
||||||
$(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
|
|
||||||
$(objpfx)libpthread.so$(libpthread.so-version) \
|
|
||||||
- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
|
|
||||||
+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
|
|
||||||
$(libprefix)pthread) \
|
|
||||||
$(+force)
|
|
||||||
(echo '/* GNU ld script';\
|
|
||||||
@@ -164,7 +164,7 @@
|
|
||||||
echo ' the static library, so try that secondarily. */';\
|
|
||||||
cat $<; \
|
|
||||||
echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
|
|
||||||
- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
|
|
||||||
+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
|
|
||||||
')' \
|
|
||||||
) > $@.new
|
|
||||||
mv -f $@.new $@
|
|
Loading…
Reference in New Issue
Block a user