[Soot-list] Unit line number??
Eric Bodden
bodden at st.informatik.tu-darmstadt.de
Mon Jun 14 07:55:58 EDT 2010
You have to call this statement before calling soot.Main.main(..)...
> Options.v().set_keep_line_number(true);
... and then execute the following code within a transformer:
> 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());
> }
>
> }
Eric
More information about the Soot-list
mailing list