[Soot-list] Building Call Graph For arbitrary method

Eric Bodden eric.bodden at mail.mcgill.ca
Fri Jul 4 13:18:50 EDT 2008


That's not possible in Soot right now. But there's a workaround.
Here's what you can do: Add a new dummy main class. Add a main method
to that class with a method body that holds a single call, calling the
method you with to analyze.

Eric

2008/7/4 Chandan Rupakheti <rupakhcr at clarkson.edu>:
> Hi,
>
> How can I build a Call Graph rooted at an arbitrary method in a project that
> does not have a main method? Is it possible to use SceneTransformer in such
> case or we have to use BodyTransformer? If extending SceneTransformer is
> possible in such case (for me I am getting exception because of not running
> soot in whole program mode which lacks main class), how can it be done?
>
> Thanks,
>
> Chandan
> --
> Chandan Raj Rupakheti
> Computer Science Graduate Student
> Department of Mathematics and Computer Science
> Clarkson University, Box 5817
> Potsdam, NY 13699
> Office: +1-315-268-3764 (CAMP - 115)
> rupakhcr at clarkson.edu
> chandanrrk at gmail.com
> http://clarkson.edu/~rupakhcr
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>



-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada


More information about the Soot-list mailing list