cstool: print out insn groups

This commit is contained in:
Nguyen Anh Quynh 2016-11-05 00:47:14 +08:00
parent 008a840a56
commit c9a2148b05
9 changed files with 12 additions and 16 deletions

View File

@ -388,6 +388,18 @@ int main(int argc, char **argv)
print_insn_detail_m68k(handle, &insn[i]);
break;
}
if (insn[i].detail->groups_count) {
int j;
printf("\tGroups: ");
for(j = 0; j < insn[i].detail->groups_count; j++) {
printf("%s ", cs_group_name(handle, insn[i].detail->groups[j]));
}
printf("\n");
}
printf("\n");
}
}

View File

@ -153,6 +153,4 @@ void print_insn_detail_arm(csh handle, cs_insn *ins)
printf("\n");
}
}
printf("\n");
}

View File

@ -137,6 +137,4 @@ void print_insn_detail_arm64(csh handle, cs_insn *ins)
printf("\n");
}
}
printf("\n");
}

View File

@ -117,7 +117,5 @@ void print_insn_detail_m68k(csh handle, cs_insn *ins)
break;
}
}
printf("\n");
}

View File

@ -44,6 +44,4 @@ void print_insn_detail_mips(csh handle, cs_insn *ins)
}
}
printf("\n");
}

View File

@ -87,6 +87,4 @@ void print_insn_detail_ppc(csh handle, cs_insn *ins)
if (ppc->update_cr0)
printf("\tUpdate-CR0: True\n");
printf("\n");
}

View File

@ -51,6 +51,4 @@ void print_insn_detail_sparc(csh handle, cs_insn *ins)
if (sparc->hint != 0)
printf("\tHint code: %u\n", sparc->hint);
printf("\n");
}

View File

@ -53,6 +53,4 @@ void print_insn_detail_sysz(csh handle, cs_insn *ins)
if (sysz->cc != 0)
printf("\tCode condition: %u\n", sysz->cc);
printf("\n");
}

View File

@ -258,6 +258,4 @@ void print_insn_detail_x86(csh ud, cs_mode mode, cs_insn *ins)
}
printf("\n");
}
printf("\n");
}