[Soot-list] How to insert Jimple code like " r1=@this, $r2=r1.toString()" using Soot?

anne wu annesh.love at gmail.com
Tue Sep 6 23:31:08 EDT 2011


Hi, every one,
     I need to insert Jimple code into a function to processing the "this"
point of the function, which first transfter "this" point to a string and
then pass the string to another function for further processing. Maybe I can
use Jimple.newAssignStmt and Jimple.newInvokeStmt, but I don't know how to
set the parameters.
    Could anyone help me?
    Thank you very much.

    BTW, following is a example:
    the original function:
    void fun1()
   {
       .......................
   }
   I want to insert some Jimple code into fun1 to process this point of fun1
just as following:
   void fun1()
   {
     String s = this.toString
     MyCounter.fun2(s);
   }
   fun2 is a static method of class MyCounter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20110907/743b2134/attachment.html 


More information about the Soot-list mailing list