This commit:
authorchadd <chadd>
Fri, 31 Jan 2003 18:55:38 +0000 (18:55 +0000)
committerchadd <chadd>
Fri, 31 Jan 2003 18:55:38 +0000 (18:55 +0000)
commit02c427e9ea664cede5961082d83b09e731b2d395
tree1f09a620fc7f987615b5dda1cada849719c1a5c7
parent0e8a93b2374d83358bd8df2b897d320e5a933082
This commit:

* Adds save the world functionality to AIX.
Mutated shared libraries are NOT saved on AIX yet.

* Reorganizes the save the world startup code in libdyninstAPI_RT.so

* Fixes a bug in dyninstAPI/src/sol_proc.C that caused dyninst to
retrieve either the path or pwd from the ptrace info
(whichever it saw first) and not the other one.

* Adds save the world functionality to Dyner
Now use the command 'saveStart' to begin marking instrumentation to
be saved back to the executable file (analogous to BPatch_thread::startSaveWorld()).
Use 'save' to save the current version of the mutatee to a file (analogous to
BPatch_thread::dumpPatchedImage(char*)).

* Adds code so that on attach, save the world data is only collected when
BPatch_thread::startSaveWorld() is called

A dyninstAPI/src/XCOFFlib.h
A dyninstAPI/src/writeBackXCOFF.C
A dyninstAPI/src/writeBackXCOFF.h
A dyninstAPI_RT/src/RTmutatedBinary_XCOFF.c
A dyninstAPI_RT/src/RTmutatedBinary_ELF.c

M dyninstAPI_RT/src/RTmutatedBinary.c
reorganized RTmutatedBinary such that it
just calls the necessary function from the
file format specific file  (RTmutatedBinary_<FILEFORMAT>.c)

M dyner/src/dyner.C
added save the world functionality
Now use the command 'saveStart' to begin marking instrumentation to
be saved back to the executable file (analogous to BPatch_thread::startSaveWorld()).
Use 'save' to save the current version of the mutatee to a file (analogous to
BPatch_thread::dumpPatchedImage(char*)).

M dyninstAPI/make.module.tmp
M dyninstAPI/i386-unknown-linux2.4/Makefile
M dyninstAPI/sparc-sun-solaris2.8/Makefile
M dyninstAPI/rs6000-ibm-aix4.2/Makefile
M dyninstAPI/src/BPatch.C
M dyninstAPI/src/BPatch_snippet.C
M dyninstAPI/src/BPatch_thread.C
M dyninstAPI/src/aix.C
M dyninstAPI/src/ast.C
M dyninstAPI/src/imageUpdate.h
M dyninstAPI/src/inst.C
M dyninstAPI/src/process.C
M dyninstAPI/src/process.h
for AIX only:
added void addLib(char*)
added int requestTextMiniTramp

M dyninstAPI/src/sol_proc.C
M dyninstAPI/tests/src/test1.C
added #if to include AIX in saveworld tests.
added code to test writeValue() with saveworld

M dyninstAPI_RT/rs6000-ibm-aix4.2/Makefile
M dyninstAPI_RT/sparc-sun-solaris2.8/Makefile
M dyninstAPI_RT/i386-unknown-linxu2.4/Makefile
M dyninstAPI_RT/src/RTcommon.c
24 files changed:
dyner/src/dyner.C
dyninstAPI/i386-unknown-linux2.4/Makefile
dyninstAPI/make.module.tmpl
dyninstAPI/sparc-sun-solaris2.8/Makefile
dyninstAPI/src/BPatch.C
dyninstAPI/src/BPatch_snippet.C
dyninstAPI/src/BPatch_thread.C
dyninstAPI/src/XCOFFlib.h [new file with mode: 0644]
dyninstAPI/src/aix.C
dyninstAPI/src/ast.C
dyninstAPI/src/imageUpdate.h
dyninstAPI/src/inst.C
dyninstAPI/src/process.C
dyninstAPI/src/process.h
dyninstAPI/src/sol_proc.C
dyninstAPI/src/writeBackXCOFF.C [new file with mode: 0644]
dyninstAPI/src/writeBackXCOFF.h [new file with mode: 0644]
dyninstAPI/tests/src/test1.C
dyninstAPI_RT/i386-unknown-linux2.4/Makefile
dyninstAPI_RT/sparc-sun-solaris2.8/Makefile
dyninstAPI_RT/src/RTcommon.c
dyninstAPI_RT/src/RTmutatedBinary.c
dyninstAPI_RT/src/RTmutatedBinary_ELF.c [new file with mode: 0644]
dyninstAPI_RT/src/RTmutatedBinary_XCOFF.c [new file with mode: 0644]