[Soot-list] Jimple Line Number

Silviu ANDRICA silviu.andrica at epfl.ch
Wed Mar 4 08:18:46 EST 2009


Thank you,
    it worked like a charm

Silviu
Eric Bodden wrote:
> You have to call Options.v().set_keep_line_number(true).
>
> Eric
>
> 2009/3/3 Silviu ANDRICA <silviu.andrica at gmail.com>:
>   
>> Hello,
>>   thanks for the reply.
>>   Now, I have a question:
>>   I'm calling soot from within my code and not through the main method.
>> Thus, how can I get the same effect by using an API command?
>>
>> Best regards,
>>   Silviu
>> Eric Bodden wrote:
>>
>> Hi Silviu.
>>
>> There's a command line switch: -keep-line-number
>>
>> This flag should generate line numbers on most Jimple statements. It
>> may be missing for some statements that result from splitting a Java
>> source-level statement into multiple Jimple statements, though. In
>> that case you can usually just use the next tag that you find on the
>> successor statements.
>>
>> Eric
>>
>> 2009/3/3 Silviu ANDRICA <silviu.andrica at epfl.ch>:
>>
>>
>> Hello,
>>  I have a silly little question: how can I get for a Jimple instruction
>> it's position in the body of a method?
>> I know I should be using  JimpleLineNumberTag, but I can't make it work.
>> It's null all the time. Is there a phase I need to enable?
>>
>> Thank you,
>>   Silviu
>> _______________________________________________
>> 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/20090304/579e3517/attachment.html 


More information about the Soot-list mailing list