[Soot-list] Can I use soot to do this
Raghav Karol
raghav.karol at gmail.com
Fri Aug 4 04:55:52 EDT 2006
On 8/4/06, Nicholas Irving <exnirving at gmail.com> wrote:
> Hi
> I have been expirementing (without success) to generate a Call Graph
> of a simple HelloWorld application, so as to be able to see if it
> makes a call to a particular System Function. For example I wanted to
> see when using FileWriter it made a called to FileOutputStream
>
> public static void main(String[] args) throws IOException, NamingException {
> FileWriter out = new FileWriter("test.txt");
> }
>
> produces
>
> HelloWorld<init>()V
> java.lang.Object<init>()V
> HelloWorldmain([Ljava/lang/String;)V
> java.io.FileWriter<init>(Ljava/lang/String;)V
> java.io.FileOutputStream<init>(Ljava/lang/String;)V
> java.io.OutputStreamWriter<init>(Ljava/io/OutputStream;)V
>
You example program does make any call to a method of FileWriter
except the constructor and that's what the call graph shows.
Adding a call like out.write(...) in the main function should give you
the information you would want.
> Is this type of analysis possible with Soot?
>
> Nicholas Irving
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
--
Raghav
MSc., Student
Informatics and Mathematical Modeling
Technical University of Denmark
+45 606 31 639
More information about the Soot-list
mailing list