[Soot-list] Try unrepresented in jimple?

David Mohr dmohr at cs.unm.edu
Wed Oct 7 17:06:55 EDT 2009


On Wed, Oct 7, 2009 at 2:59 PM, David Mohr <dmohr at cs.unm.edu> wrote:
> Hi,
> seems like I'm flooding the list with questions, but oh well, here I go:
>
> Am I correct that the try statement (the exception table in byte code)
> is not represented in Jimple? It seems to me that neither does the
> grammar include any statements for it, nor do .jimple files in
> practice.
>
> I think I can in practice work my way around that limitation, but it
> seems unfortunate that I have to use workarounds. Of course Soot as a
> whole is pretty nice, and does maintain the exception tables, I just
> can't see or manipulate them properly in the Jimple representation. I

It seems I was too hasty in stating this - I don't think I can work
around it easily.

What I want to do is insert code at the beginning of a method. But if
a try block starts at the first statement in the original code, then
my inserted code also ends up inside of the try block. I want to
insert my code before the try block / move the try block back to the
first statement of the original code. Can anyone give me a
recommendation how I can accomplish that in Jimple?

Thanks!

~David


More information about the Soot-list mailing list