Added support for invokedynamic opcode.

This commit is contained in:
chous 2013-03-16 22:56:21 +01:00
parent 361d169be0
commit 14eee2a325
2 changed files with 2 additions and 0 deletions

View file

@ -101,6 +101,7 @@ int java_print_opcode(ut64 addr, int idx, const ut8 *bytes, char *output, int ou
case 0xb7: // invokespecial
case 0xb8: // invokestatic
case 0xb9: // invokeinterface
case 0xba: // invokedynamic
java_resolve ((int)USHORT (bytes, 1)-1, arg);
snprintf (output, outlen, "%s %s", java_ops[idx].name, arg);
return java_ops[idx].size;

View file

@ -134,6 +134,7 @@ struct java_op java_ops[] = {
{ "invokespecial" , 0xb7 , 3 } ,
{ "invokestatic" , 0xb8 , 3 } ,
{ "invokeinterface" , 0xb9 , 5 } ,
{ "invokedynamic" , 0xba , 5 } ,
{ "ior" , 0x80 , 1 } ,
{ "irem" , 0x70 , 1 } ,
{ "ireturn" , 0xac , 1 } ,