[Soot-list] Adding an attribute to a line of code

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Fri May 21 02:22:40 EDT 2010


Hi Arie.

If I remember correctly then there is o such thing as a unit-level
attribute in bytecode. There are only method-level attributes that can
refer to units via instruction offsets. I believe that this is what
the aggregaters are meant for: convert a list of unit-level tags to a
single method-level tag that encodes the unit-to-attribute relation
correctly. I think there should be some code in Soot that already does
that for certain attributes.

If you have suggestions on how to make this any easier, please let us
know. This is definitely one of the areas of Soot that I think may
still benefit from improvements.

Happy tagging,
Eric

--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



On 21 May 2010 02:33, Arie Zilberstein <arie.zilberstein at gmail.com> wrote:
> Hi,
> I'm having a lot of trouble adding an attribute to a line of code.
> I attach my own custom Tag to a (Jimple) Unit but that tag never gets
> translated into a Java attribute.
> It seems that Soot only outputs field, class or method-level attributes. A
> tag on a Unit will at best get aggregated by a TagAggregator and will be
> lost; instead a method-level attribute will be created.
> Am I doing something wrong? I analyzed the code thoroughly and could not
> find the way.
> I even found a tutorial
> (http://www.sable.mcgill.ca/soot/tutorial/tagclass/index.html) but it failed
> in the same way. I'm using the SVN trunk version of soot.
> Thanks,
> Arie
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>


More information about the Soot-list mailing list