[Soot-list] Soot as a rewriting tool - adding a method during body transformation

David Mohr dmohr at cs.unm.edu
Wed Oct 7 12:04:16 EDT 2009


On Wed, Oct 7, 2009 at 12:56 AM, Eric Bodden
<bodden at st.informatik.tu-darmstadt.de> wrote:
> Hi David.
>
> I think the correct way to go about this is to:
>
> 1.) Enable whole-program mode (I know you don't like it).
>
> 2.) Disable all w* packs except the pack wjtp, which is empty by
> default. (Set their phase option "enabled" to false.) Also disable the
> cg pack. This should prevent Soot from running expensive whole-program
> analyses.

I tried that, but somehow when I disabled cg, I received errors about
a missing call graph.

> 3.) Add a SceneTransformer to the wjtp pack and add the methods in there.
>
> Eric

Thanks for the suggestion, see my reply to Patrick Lam's Email.

~David


More information about the Soot-list mailing list