Make the usage of pointer and shared_pointer consistent in PatchAPI, and fix
authorWenbin Fang <wenbin@cs.wisc.edu>
Sat, 27 Aug 2011 21:13:04 +0000 (16:13 -0500)
committerWenbin Fang <wenbin@cs.wisc.edu>
Sun, 28 Aug 2011 00:44:39 +0000 (19:44 -0500)
commit81c42467977add513e0670816e207f96c3ec8f0f
treeb37128a3d1a874f9042d218926b80ace1d11f225
parent9938f1eea5b9f0f260cfaed2bb8908cdc74a9441
Make the usage of pointer and shared_pointer consistent in PatchAPI, and fix
bugs for PatchAPI::Point::getCallee and PatchAPI::PatchBlock::getCallee.

What's new:

- use raw pointer to PatchAPI's plugins: PatchAPI::CFGMaker,
  PatchAPI::PointMaker, PatchAPI::AddrSpace, PatchAPI::Instrumenter

- in PatchBlock::getCallee and Point::getCallee, pass a relative address to
  CodeObject::findFuncByEntry, instead of passing an absolute address.

- change the order of parameters in PatchMgr::create

- update patchapi document
41 files changed:
dyninstAPI/src/BPatch_addressSpace.C
dyninstAPI/src/BPatch_binaryEdit.C
dyninstAPI/src/BPatch_process.C
dyninstAPI/src/Relocation/DynAddrSpace.C
dyninstAPI/src/Relocation/DynAddrSpace.h
dyninstAPI/src/Relocation/DynCommon.h
dyninstAPI/src/Relocation/DynInstrumenter.C
dyninstAPI/src/Relocation/DynInstrumenter.h
dyninstAPI/src/Relocation/DynObject.C
dyninstAPI/src/Relocation/DynPointMaker.h
dyninstAPI/src/addressSpace.C
dyninstAPI/src/addressSpace.h
dyninstAPI/src/instPoint.C
dyninstAPI/src/miniTramp.C
dyninstAPI/src/process.C
patchAPI/doc/Makefile
patchAPI/doc/section/1_intro.tex
patchAPI/doc/section/2_abs.tex
patchAPI/doc/section/3_example.tex
patchAPI/doc/section/4_api_public.tex
patchAPI/h/AddrSpace.h
patchAPI/h/CFGMaker.h
patchAPI/h/Command.h
patchAPI/h/Instrumenter.h
patchAPI/h/PatchMgr.h
patchAPI/h/PatchObject.h
patchAPI/h/common.h
patchAPI/src/AddrSpace.C
patchAPI/src/Command.C
patchAPI/src/Instrumenter.C
patchAPI/src/PatchBlock.C
patchAPI/src/PatchFunction.C
patchAPI/src/PatchMgr.C
patchAPI/src/PatchObject.C
patchAPI/src/Point.C
testsuite/src/patchapi/patch1_1.C
testsuite/src/patchapi/patch2_1.C
testsuite/src/patchapi/patch3_1.C
testsuite/src/patchapi/patch3_2.C
testsuite/src/patchapi/patch4_1.C
testsuite/src/patchapi/patchapi_comp.C