After tested under windows.
[dyninst.git] / dyninstAPI / src / Relocation / DynObject.C
1 /* Plugin Implementation */
2
3 #include "DynObject.h"
4 #include "PatchMgr.h"
5 #include "process.h"
6
7 using Dyninst::ParseAPI::CodeObject;
8 using Dyninst::ParseAPI::CodeRegion;
9 using Dyninst::PatchAPI::DynObject;
10 using Dyninst::PatchAPI::DynObjectPtr;
11 using Dyninst::PatchAPI::InstanceSet;
12 using Dyninst::PatchAPI::InstancePtr;
13 using Dyninst::PatchAPI::DynCFGMakerPtr;
14 using Dyninst::PatchAPI::DynCFGMaker;
15
16 DynObject::DynObject(ParseAPI::CodeObject* co, AddressSpace* as, Address base)
17   : PatchObject(co, base, DynCFGMakerPtr(new DynCFGMaker)), as_(as) {
18 }
19
20 DynObject::DynObject(const DynObject* par_obj, process* child, Address base)
21   : PatchObject(par_obj, base), as_((AddressSpace*)child) {
22 }
23
24 DynObject::~DynObject() {
25 }
26