mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-21 15:02:56 +00:00
cstool: print out insn groups
This commit is contained in:
parent
008a840a56
commit
c9a2148b05
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -153,6 +153,4 @@ void print_insn_detail_arm(csh handle, cs_insn *ins)
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
@ -137,6 +137,4 @@ void print_insn_detail_arm64(csh handle, cs_insn *ins)
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
@ -117,7 +117,5 @@ void print_insn_detail_m68k(csh handle, cs_insn *ins)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
@ -44,6 +44,4 @@ void print_insn_detail_mips(csh handle, cs_insn *ins)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -258,6 +258,4 @@ void print_insn_detail_x86(csh ud, cs_mode mode, cs_insn *ins)
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user