[Soot-list] How to get SourceFileTag
Eric Bodden
bodden at st.informatik.tu-darmstadt.de
Tue May 17 14:37:44 EDT 2011
Hello.
If I am not mistaken then the SourceFileTag is just always present. It
should be attached to the SootClass.
About the offset: I think that you cannot retrieve it, for the reasons
you mentioned: some Soot locals represent stack locations that have no
offset. I guess there may be a way to extend Soot, though, to keep the
offset for the other locals.
Eric
2011/5/16 Xiaochen <wxy_3055 at 163.com>:
> Dear Eric:
> I want to build some source code searching tools based on soot. So I
> want to get the source file and the line number of each variable in the
> jimple code.
> I find that there is a sourceFileTag, and I think it will record the
> source file of a given valuebox during the loading of Java classes. I know
> that if I set the keep-line-number to be true, I can get the LineNumberTag,
> However, I cannot find which option to set to get the sourceFileTag.
> Furthermore, is there any way in soot to record the exact offset of a
> variable in the source code(I guess there may be not since the byte code
> that soot analyze may already lose this information)?
> Please kindly advise!
> Yours Sincerely,
> Xiaochen
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>
--
Dr. Eric Bodden, http://bodden.de/
Principal Investigator in Secure Services at CASED
Coordinator of the CASED Advisory Board of Study Affairs
PostDoc at Software Technology Group, Technische Universität Darmstadt
Tel: +49 6151 16-5478 Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt
More information about the Soot-list
mailing list