Patch: Linuxthreads is broken.
H . J . Lu
hjl@lucon.org
Sat Jun 16 16:49:00 GMT 2001
Linuxthreads is broken due to the stack change. Here is a patch.
H.J.
---
2001-06-16 H.J. Lu <hjl@gnu.org>
* internals.h: Include <stackinfo.h>.
* attr.c: Don't include <stackinfo.h> here.
* cancel.c: Likewise.
* manager.c: Likewise.
* pthread.c: Likewise.
* ptlongjmp.c: Likewise.
Index: linuxthreads/attr.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/attr.c,v
retrieving revision 1.23
diff -u -p -r1.23 attr.c
--- linuxthreads/attr.c 2001/06/16 18:47:49 1.23
+++ linuxthreads/attr.c 2001/06/16 23:42:56
@@ -22,7 +22,6 @@
#include "pthread.h"
#include "internals.h"
#include <shlib-compat.h>
-#include <stackinfo.h>
int __pthread_attr_init_2_1(pthread_attr_t *attr)
{
Index: linuxthreads/cancel.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/cancel.c,v
retrieving revision 1.18
diff -u -p -r1.18 cancel.c
--- linuxthreads/cancel.c 2001/04/12 23:06:03 1.18
+++ linuxthreads/cancel.c 2001/06/16 23:42:56
@@ -20,7 +20,6 @@
#include "internals.h"
#include "spinlock.h"
#include "restart.h"
-#include <stackinfo.h>
#ifdef _STACK_GROWS_DOWN
# define FRAME_LEFT(frame, other) ((char *) frame >= (char *) other)
Index: linuxthreads/internals.h
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/internals.h,v
retrieving revision 1.67
diff -u -p -r1.67 internals.h
--- linuxthreads/internals.h 2001/06/16 18:47:49 1.67
+++ linuxthreads/internals.h 2001/06/16 23:42:57
@@ -24,6 +24,7 @@
#include <setjmp.h>
#include <signal.h>
#include <unistd.h>
+#include <stackinfo.h>
#include <sys/types.h>
#include <bits/libc-tsd.h> /* for _LIBC_TSD_KEY_N */
Index: linuxthreads/manager.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/manager.c,v
retrieving revision 1.70
diff -u -p -r1.70 manager.c
--- linuxthreads/manager.c 2001/06/16 18:47:49 1.70
+++ linuxthreads/manager.c 2001/06/16 23:42:57
@@ -32,7 +32,6 @@
#include "spinlock.h"
#include "restart.h"
#include "semaphore.h"
-#include <stackinfo.h>
/* Array of active threads. Entry 0 is reserved for the initial thread. */
struct pthread_handle_struct __pthread_handles[PTHREAD_THREADS_MAX] =
Index: linuxthreads/pthread.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/pthread.c,v
retrieving revision 1.82
diff -u -p -r1.82 pthread.c
--- linuxthreads/pthread.c 2001/06/16 18:47:49 1.82
+++ linuxthreads/pthread.c 2001/06/16 23:42:58
@@ -30,7 +30,6 @@
#include "internals.h"
#include "spinlock.h"
#include "restart.h"
-#include <stackinfo.h>
/* We need the global/static resolver state here. */
#include <resolv.h>
Index: linuxthreads/ptlongjmp.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/ptlongjmp.c,v
retrieving revision 1.6
diff -u -p -r1.6 ptlongjmp.c
--- linuxthreads/ptlongjmp.c 2001/04/10 21:14:07 1.6
+++ linuxthreads/ptlongjmp.c 2001/06/16 23:42:58
@@ -18,7 +18,6 @@
#include <setjmp.h>
#include "pthread.h"
#include "internals.h"
-#include <stackinfo.h>
/* These functions are not declared anywhere since they shouldn't be
used at another place but here. */
More information about the Libc-alpha
mailing list