[Soot-list] Are there any way to record the location of a certain statement?
Eric Bodden
eric.bodden at mail.mcgill.ca
Thu Jul 16 14:56:27 EDT 2009
Hi.
If by location you mean source-code line numbers then the answer is
yes. Just use the -keep-line-number command-line flag and then look
for a SourceLnPosTag using stmt.getTags(..). There's more on this in
the archive of this list.
Eric
2009/7/16 Kelvin Tian <kevinn.tian at gmail.com>:
> Hi,
>
> I wonder if Soot has some way to record the location of a certain
> statement, to build some kind of mapping between a certain statement (ie:
> loop) and the location (ie. line number in a xx class file) ? So that I
> can revisit a certain statement I want? Thanks a lot for any suggestions!
>
>
> --
> Best regards,
> Kelvin
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>
--
Eric Bodden
Sable Research Group, McGill University
Montréal, Québec, Canada
More information about the Soot-list
mailing list