Hello Bill,
Thanks for your response. As suggested, I have tried the
following code to retrieve the name of all the BPatch_object
instances in BPatch_image.
.
Here, MyLibText.exe (windows binary) is linked with static
library "TestLib.Lib"
ÂBPatch_image* image =
LoadBinary("D:\\MyLibTest\\Debug\\MyLibTest.exe");
Âstd::vector<BPatch_object *> objs;
Âimage->getObjects(objs);
Âstd::vector<BPatch_object *>::iterator itr_obj =
objs.begin();
Âwhile ( itr_obj != objs.end() )
Â{
ÂÂBPatch_object* bp = (*itr_obj);
ÂÂstd::string obj_name = bp->name();
ÂÂitr_obj++;
Â}
This code prints the name of only one object name which is
"MyLibTest.exe". Static Library name is not printed. As a
result, static library function call can not be mapped to its
parent module as "TestLib.Lib".Â
Is there anything missed out? or Do I need to upgrade my
Dyninst SDK from 9.0.3 to latest version 9.2 toÂretrieve the
parent object name (TestLib.LIB) of static library function
call?