Changes to Dyninst to use the new thread information and events provided by
authorDaniel McNulty <mcnulty@cs.wisc.edu>
Wed, 9 Feb 2011 19:48:52 +0000 (13:48 -0600)
committerDaniel McNulty <mcnulty@cs.wisc.edu>
Wed, 9 Feb 2011 19:48:52 +0000 (13:48 -0600)
commitf0b400834901a69f92a512dc4e1d222f6aed1cf2
tree075621bd986b409bb4c543bae2fe709afc2823b9
parent6f4405b9355ee00771f1411c17fe41313045728f
Changes to Dyninst to use the new thread information and events provided by
ProcControlAPI

Modified PCThread and BPatch_thread so PCThread now encapsulates any
functionality required to extract thread information from a process instead of
BPatch_thread.

PCEventHandler now creates and destroys PCThreads using the thread events
provided by ProcControlAPI, agnostic of the events actually available on a
platform.

The RT library now uses thread ids instead of lwp ids when locating a tramp
guard for a thread.

Also, fixes a bug in the ProcControl testsuite component where file
descriptors weren't being closed -- this was causing tests to fail when
run in combination with Dyninst.
15 files changed:
dyninstAPI/src/BPatch_thread.C
dyninstAPI/src/linux.C
dyninstAPI/src/pcEventHandler.C
dyninstAPI/src/pcProcess.C
dyninstAPI/src/pcProcess.h
dyninstAPI/src/pcThread.C
dyninstAPI/src/pcThread.h
dyninstAPI/src/unix.C
dyninstAPI_RT/src/RTthread.c
dyninstAPI_RT/src/RTthread.h
dynutil/h/dyntypes.h
proccontrol/src/int_thread_db.C
proccontrol/src/process.C
testsuite/src/proccontrol/proccontrol_comp.C
testsuite/src/test_lib.C