[Soot-list] Getting the java source line number in FlowDroid

Bodden, Eric eric.bodden at sit.fraunhofer.de
Thu Jan 1 08:00:08 EST 2015


Hi Ashish.

I think you might be using the wrong tag. Please just try calling unit.getJavaSourceStartLineNumber()

Cheers,
Eric


> On 01.01.2015, at 06:42, Ashish Mishra <ashish123.mishragkp at gmail.com> wrote:
> 
> Hi List,
> 
> I am trying to get the line number tag in flowFroid by setting Options.v().set_keep_line_number(true), in the InfoFlow.java in the soot.jimple.infoflow package  but the tag list associated with the Units is empty.
> 
> 
> I am trying to access the tag as follows
> 
> LineNumberTag tag = (LineNumberTag)unit.getTag("LineNumberTag");
> 
> but the tag is null as i mentioned
> 
> Where am i mistaken? How can i get the line number in FlowDroid.. i can get it easily when creating my own Transformer in Soot and calling soot.Main by setting proper option.
> 
> Please help!
> 
> Thanks
> 
> --
> Regards,
> Ashish Mishra
> Graduate Student,
> Computer Science and Automation Department,IISc
> Cell : +91-9611194714
> Mailto : ashishmishra at csa.iisc.ernet.in
> 
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150101/bfe5528d/attachment.bin 


More information about the Soot-list mailing list