harshguptaiscf / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

Please support exception handling decompilation #105

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, decompilation of exception handling is either not supported or 
broken.  For example:

parse-BB@0x2 : [ parse-BB@0xe parse-BB@0x1d2 ]
    1       (00000002) invoke-static        v10, <redacted>AuthorizationCode;->verifyFormat(Ljava/lang/String;)Z
    2       (00000008) move-result          v0
    3       (0000000a) if-eqz               v0, +e4
    2:16d
    (Ljava/lang/Exception; -> 196 parse-BB@0x196)

...

parse-BB@0x196 : [ parse-BB@0x19a ]
    115     (00000196) move-exception       v10
    116     (00000198) move-object          v0, v6

parse-BB@0x19a : [ parse-BB@0x194 ]
    117     (0000019a) sget-object          v0, Ljava/lang/System;->err Ljava/io/PrintStream;
    118     (0000019e) new-instance         v1, Ljava/lang/StringBuilder;
    119     (000001a2) invoke-direct        v1, Ljava/lang/StringBuilder;-><init>()V
    120     (000001a8) const-string         v2, 'Error in verifyFormat: '
...

However, the exception handling does not show up in the decompilation.

Original issue reported on code.google.com by drspring...@gmail.com on 18 Jan 2013 at 3:49

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 18 Jan 2013 at 3:50

GoogleCodeExporter commented 8 years ago
Indeed, exception handling is not yet supported (along with 
threads/synchronized objects).

It is on my todo list.

Original comment by Lir...@gmail.com on 18 Jan 2013 at 8:32