[Soot-list] Visiting all method calls
Marc Miltenberger
Marc.Miltenberger at cased.de
Tue Jul 28 14:04:19 EDT 2015
Hi there,
as far es I know, both are correct usages.
getActiveBody might fail if the method has not been loaded yet (with
retrieveActiveBody) or if the method has not have an implementation at
all such as interface methods or native methods.
Marc
Am 28.07.2015 um 19:59 schrieb Earlence Fernandes:
> I am writing a pack that generates a list of all method calls made by a
> program. Currently, my strategy is to use a SceneTransformer (wjtp) that
> will simply useScene.v().getReachableMethods() (for a given set of entry
> points I defined when setting up the pack). Is this the correct use?
>
> Another strategy is to write a BodyTransformer that will iterate each
> Stmt in a body and then determine if it's a method call.
>
> Which strategy is the correct one?
>
> Also, I tried iterating Stmts from a SceneTransformer using
> getActiveBody but sometimes that throws a runtime exception saying that
> there is no active body.
>
> -Earlence
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
More information about the Soot-list
mailing list