[Soot-list] Unit line number??

dinesh chhatani dinustudy at gmail.com
Mon Jun 14 07:24:23 EDT 2010


Options.v().set_keep_line_number(true);

                        for(Unit u:body.getUnits())
                        {
                            LineNumberTag tag=(LineNumberTag)
u.getTag("LineNumberTag");
                            System.out.println("Testing line numbers:");
                            if(tag!=null){
                                System.out.println("\nLine number for Unit
:"+u+" :"+tag.getLineNumber());
                            }

                        }

for the above code nothing is getting printed..

On Mon, Jun 14, 2010 at 4:04 PM, Eric Bodden <
bodden at st.informatik.tu-darmstadt.de> wrote:

> Hi Dinesh.
>
> Google knows it all :-)
> http://www.google.de/search?q=soot%20line%20number
>
> Eric
>
> --
> Dr. Eric Bodden
> Software Technology Group, Technische Universität Darmstadt, Germany
> Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
> Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt
>
>
>
> On 14 June 2010 12:26, dinesh chhatani <dinustudy at gmail.com> wrote:
> > Hi,
> >
> > i want to know the source code line number from the jimple Unit object??I
> > mean, My jimple unit is corresponding to which line number in the source.
> >
> > --
> > Regards ,
> > Dinesh Chhatani
> >
> > _______________________________________________
> > Soot-list mailing list
> > Soot-list at sable.mcgill.ca
> > http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
> >
> >
>



-- 
Regards ,
Dinesh Chhatani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100614/6bf4ca2b/attachment.html 


More information about the Soot-list mailing list