[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable Names



Try compiling with javac -g (for debug information) and see what happens. You can also check out the pldi03 tutorial for more details.

Emil

Roland Weiss wrote:
Hello,

I'm starting to use the Soot framewotk as a compiler toolkit. Could anyone give
me some details on how to preserve the variable names of objects (locals). Soot
automatically generates names like ($r0, ..., b0, ...), but I'd prefer the original
names.


I've found the method setFaithfulNaming(boolean) and called it like this
  soot.coffi.Util.v().setFaithfulNaming(true);
Unfortunately, it had no effect on the variable names.

A rough outline of my procedure: I get the classes with loadClassAndSupport and
then select some methods for further inspection. When I write the locals with
System.out.println(sc_body.getLocals()) the generated names are displayed.


Any suggestions?

best regards,
Roland