cstool: print instruction ID & name

This commit is contained in:
Nguyen Anh Quynh 2019-04-11 09:07:26 +08:00
parent 071a970e8f
commit 3bb1479056

View File

@ -265,6 +265,8 @@ static void usage(char *prog)
static void print_details(csh handle, cs_arch arch, cs_mode md, cs_insn *ins)
{
printf("\tID: %u (%s)\n", ins->id, cs_insn_name(handle, ins->id));
switch(arch) {
case CS_ARCH_X86:
print_insn_detail_x86(handle, md, ins);