[Soot-list] insert invoke instruction

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Fri Jun 18 03:11:26 EDT 2010


Hi Dinesh.

If the function is not static then first you have to get a handle to
the object that you want to invoke the method on. Store this object in
a Local, then create a new JInstanceInvokeExpr with this Local as the
"base".

Eric

--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



On 18 June 2010 08:51, dinesh chhatani <dinustudy at gmail.com> wrote:
> Hi,
> I want to insert '' a call to function" in jimple(during profiling
> ).function is not static.How do i do tht
>
> --
> Regards ,
> Dinesh Chhatani
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>


More information about the Soot-list mailing list