[Soot-list] Get source code by line number

Zeinab Lashkaripour lashkaripour at yahoo.com
Sat Feb 23 16:22:26 EST 2013


Marc-André and Phil, thanks for your replies.

> Are you running with the option to preserve the line numbers?
I might have not explained my condition right, I can get the line numbers. The question I have is that can I get the source code of a line number with Soot or do I have to "parse the original
source file given a line number to get the source line" as Phil said and I had that in mind.
Does Soot support anything like this or not (so that giving the line number I can get the source code of the given line number)?

Regards,
Zeinab



________________________________
 From: Marc-Andre Laverdiere-Papineau <marc-andre.laverdiere-papineau at polymtl.ca>
To: soot-list at sable.mcgill.ca 
Sent: Saturday, February 23, 2013 11:13 PM
Subject: Re: [Soot-list] Get source code by line number
 
Look at the tags on your objects. Are you running with the option to 
preserve the line numbers?


Marc-André Laverdière-Papineau
Doctorant - PhD Candidate

On 13-02-23 01:35 PM, Zeinab Lashkaripour wrote:
> Hi,
> I have got the source code line number from the tags but I wanted to get
> the source code of that specific line number,
> Does Soot have anything for this?  (but didn't find any solution)
> I looked in the API and found "MethodSource: getSource()" therefore I
> used it as: "MethodSource ms = classMethod.getSource();" but it returned
> null.
>
>
> Regards,
> Zeinab
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
_______________________________________________
Soot-list mailing list
Soot-list at sable.mcgill.ca
http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130223/e2d79aae/attachment.html 


More information about the Soot-list mailing list