I use RTN_FindByName() to search for a specific RTN, but it didn't work with me, moreover i try to force the compiler to not inline the RTN, but still not working,
test code:
void __attribute__ ((noinline)) MyFunInApp()
{
printf(" function inside application environmental \n");
}
code in pintool:
VOID ImageLoad(IMG img, VOID *v)
{
RTN MyRtn = RTN_FindByName(img,"MyFunInApp");
if (RTN_Valid(MyRtn))
{
cout<< "Found RTN"<< endl;
}
else
{
cout<< "Not Found RTN"<< endl;
}
}
How can i fix that, or do that by another way ?
Compiler: gcc version 4.8
C++ Language
O.S : Ubuntu 14.04 LTS, 64-bit
Output (of test code) :
Not Found RTN
Not Found RTN
Not Found RTN