Patched MIT Pthreads (PMP) with TDI support
To get TDI support
for the FSU pthreads do the following steps:
-
download
the patch
-
follow the quick installation guide to apply
this patch
-
to get debugging support you need an installed
TDI library and a patched Gdb 4.17
-
to compile and link pthread applications you
have to pass the compiler flag -ldl, because the TDI library is loaded
by the patched pthreads library at runtime (with dlopen). If you don't
use a SunOS, you propably have to pass additional compiler flags ( -rdynamic
under Linux) to make the program symbols visible to the TDI library (SunOS's
dlopen flag RTLD_PARENT)
-
for Linux: gcc
-rdynamic -o foo foo.c -lpthread -ldl
-
for Solaris: gcc
-o foo foo.c -lpthread -ldl
Quick Installation
guide
The patch is applicable to the version 1.8.8
of the PMP
library. It's tested only on Solaris and Linux.
-
Copy the patch to the directory containing
the PMP pthreads source package directory.
-
apply the patch by executing the command:
,,patch -p0 < pmpthreads-1.8.8-TDI.patch''
-
after patching you can start with the normal
PMP installation procedure
last modified: 1999-Apr-25 |
author: Daniel Schulz
|