[Soot-list] How To Add Classes To Instrument Dynamically

Bashar Al Rawi brawi at umich.edu
Wed Aug 20 10:05:25 EDT 2008


Thanks. It works.

On Wed, Aug 20, 2008 at 9:34 AM, Eric Bodden <eric.bodden at mail.mcgill.ca>wrote:

> Hi Bashar.
>
> You should be able to load that class via
> Scene.v().loadClassAndSupport("String"). You then have to make the
> SootClass an application class by calling setApplicationClass(). After
> that it should be processed by any transformer that you invoke (or you
> can call a BodyTransformer manually on bodies of that class).
>
> Eric
>
> 2008/8/19 Bashar Al Rawi <brawi at umich.edu>:
> >
> > Hi,
> >
> > It seems that you can only instrument that classes that you pass by in
> the
> > argument list to Soot.Main. Is there any way that I could instrument
> classes
> > dynamically?
> > In other words, suppose I encounter a class Foo as a field in some other
> > class. How can I tell Soot to instrument this class file Foo and write it
> > out to Foo.class?
> >
> > Thanks
> >
> > --
> > Bashar
> >
> > _______________________________________________
> > 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
>



-- 
Bashar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20080820/2fb87557/attachment.htm


More information about the Soot-list mailing list