/external/capstone/bindings/python/pyx/ |
D | ccapstone.pxd | 8 ctypedef size_t csh 38 cs_err cs_open(cs_arch arch, cs_mode mode, csh *handle) 40 cs_err cs_close(csh *handle) 42 cs_err cs_errno(csh handle) 44 size_t cs_disasm(csh handle, 50 cs_err cs_option(csh handle, cs_opt_type type, size_t value) 54 const char *cs_reg_name(csh handle, unsigned int reg_id) 56 const char *cs_insn_name(csh handle, unsigned int insn_id) 58 const char *cs_group_name(csh handle, unsigned int group_id) 60 bool cs_insn_group(csh handle, cs_insn *insn, unsigned int group_id) [all …]
|
/external/capstone/bindings/vb6/ |
D | vbCapstone.cpp | 30 cs_err __stdcall bs_open(cs_arch arch, cs_mode mode, csh *handle){ in bs_open() 35 cs_err __stdcall bs_close(csh *handle){ in bs_close() 40 cs_err __stdcall bs_option(csh handle, cs_opt_type type, size_t value){ in bs_option() 45 cs_err __stdcall bs_errno(csh handle){ in bs_errno() 55 size_t __stdcall bs_disasm(csh handle, const uint8_t *code, size_t code_size, uint64_t address, siz… in bs_disasm() 65 const char* __stdcall bs_reg_name(csh handle, unsigned int reg_id){ in bs_reg_name() 75 cs_insn* __stdcall bs_malloc(csh handle){ in bs_malloc() 81 int __stdcall bs_op_index(csh handle, const cs_insn *insn, unsigned int op_type, unsigned int posit… in bs_op_index() 86 int __stdcall bs_op_count(csh handle, const cs_insn *insn, unsigned int op_type){ in bs_op_count() 91 bool __stdcall bs_reg_write(csh handle, const cs_insn *insn, unsigned int reg_id){ in bs_reg_write() [all …]
|
/external/capstone/arch/ARM/ |
D | ARMInstPrinter.c | 124 if (MI->csh->detail != CS_OPT_ON) in set_mem_access() 127 MI->csh->doing_mem = status; in set_mem_access() 142 if (MI->csh->detail) { in op_addImm() 187 if (MI->csh->detail) { in printRegImmShift() 188 if (MI->csh->doing_mem) in printRegImmShift() 197 if (MI->csh->detail) { in printRegImmShift() 198 if (MI->csh->doing_mem) in printRegImmShift() 247 void ARM_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci) in ARM_post_printer() 255 } else if (mci->csh->mode & CS_MODE_THUMB) { in ARM_post_printer() 422 if ((ARM_getFeatureBits(MI->csh->mode) & ARM_HasV8Ops)) { in ARM_printInst() [all …]
|
D | ARMMapping.h | 11 const char *ARM_reg_name(csh handle, unsigned int reg); 12 const char *ARM_reg_name2(csh handle, unsigned int reg); 17 const char *ARM_insn_name(csh handle, unsigned int id); 19 const char *ARM_group_name(csh handle, unsigned int id);
|
/external/capstone/include/ |
D | capstone.h | 67 typedef size_t csh; typedef 361 cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle); 378 cs_err CAPSTONE_API cs_close(csh *handle); 395 cs_err CAPSTONE_API cs_option(csh handle, cs_opt_type type, size_t value); 406 cs_err CAPSTONE_API cs_errno(csh handle); 454 size_t CAPSTONE_API cs_disasm(csh handle, 466 size_t CAPSTONE_API cs_disasm_ex(csh handle, 492 cs_insn * CAPSTONE_API cs_malloc(csh handle); 530 bool CAPSTONE_API cs_disasm_iter(csh handle, 548 const char * CAPSTONE_API cs_reg_name(csh handle, unsigned int reg_id); [all …]
|
/external/capstone/bindings/java/capstone/ |
D | Capstone.java | 96 private NativeLong csh; field in Capstone.CsInsn 136 csh = _csh; in CsInsn() 206 return cs.cs_op_count(csh, raw.getPointer(), type); in opCount() 210 return cs.cs_op_index(csh, raw.getPointer(), type, index); in opIndex() 214 return cs.cs_reg_read(csh, raw.getPointer(), reg_id) != 0; in regRead() 218 return cs.cs_reg_write(csh, raw.getPointer(), reg_id) != 0; in regWrite() 222 return cs.cs_errno(csh); in errno() 226 return cs.cs_reg_name(csh, reg_id); in regName() 230 return cs.cs_insn_name(csh, id); in insnName() 234 return cs.cs_group_name(csh, id); in groupName() [all …]
|
/external/capstone/bindings/python/capstone/ |
D | __init__.py | 367 def __init__(self, csh, arch): argument 368 self.csh = csh 383 csh = ctypes.c_size_t() 384 status = _cs.cs_open(arch, mode, ctypes.byref(csh)) 389 res = _cs.cs_disasm(csh, code, len(code), offset, count, ctypes.byref(all_insn)) 393 yield CsInsn(_dummy_cs(csh, arch), all_insn[i]) 397 status = _cs.cs_errno(csh) 403 status = _cs.cs_close(ctypes.byref(csh)) 424 csh = ctypes.c_size_t() 425 status = _cs.cs_open(arch, mode, ctypes.byref(csh)) [all …]
|
/external/capstone/arch/Sparc/ |
D | SparcInstPrinter.c | 48 if (MI->csh->detail) { in Sparc_add_hint() 55 if (MI->csh->detail) { in Sparc_add_reg() 64 if (MI->csh->detail != CS_OPT_ON) in set_mem_access() 67 MI->csh->doing_mem = status; in set_mem_access() 79 void Sparc_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci) in Sparc_post_printer() 144 if (MI->csh->mode & CS_MODE_V9 || (MCInst_getNumOperands(MI) != 3) || in printSparcAliasInstr() 176 if (MI->csh->detail) { in printOperand() 177 if (MI->csh->doing_mem) { in printOperand() 277 if (MI->csh->detail) { in printOperand() 278 if (MI->csh->doing_mem) { in printOperand() [all …]
|
D | SparcMapping.h | 10 const char *Sparc_reg_name(csh handle, unsigned int reg); 15 const char *Sparc_insn_name(csh handle, unsigned int id); 17 const char *Sparc_group_name(csh handle, unsigned int id);
|
/external/capstone/arch/XCore/ |
D | XCoreInstPrinter.c | 39 void XCore_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci) in XCore_post_printer() 67 if (MI->csh->detail) { in XCore_insn_extract() 89 if (MI->csh->detail) { in XCore_insn_extract() 108 if (MI->csh->detail) { in XCore_insn_extract() 113 if (MI->csh->detail) { in XCore_insn_extract() 119 if (MI->csh->detail) { in XCore_insn_extract() 128 if (MI->csh->detail) { in XCore_insn_extract() 140 if (MI->csh->detail) { in XCore_insn_extract() 152 if (MI->csh->detail != CS_OPT_ON) in set_mem_access() 155 MI->csh->doing_mem = status; in set_mem_access() [all …]
|
D | XCoreMapping.h | 10 const char *XCore_reg_name(csh handle, unsigned int reg); 15 const char *XCore_insn_name(csh handle, unsigned int id); 17 const char *XCore_group_name(csh handle, unsigned int id);
|
/external/capstone/arch/X86/ |
D | X86IntelInstPrinter.c | 54 if (MI->csh->detail != CS_OPT_ON) in set_mem_access() 57 MI->csh->doing_mem = status; in set_mem_access() 68 switch(MI->csh->mode) { in printopaquemem() 298 if (MI->csh->detail) { in printSrcIdx() 314 if (MI->csh->detail) { in printSrcIdx() 329 if (MI->csh->detail) { in printDstIdx() 340 if (MI->csh->mode != CS_MODE_64) { in printDstIdx() 342 if (MI->csh->detail) { in printDstIdx() 416 if (MI->csh->detail) { in printMemOffset() 431 if (MI->csh->detail) { in printMemOffset() [all …]
|
D | X86ATTInstPrinter.c | 55 if (MI->csh->detail != CS_OPT_ON) in set_mem_access() 58 MI->csh->doing_mem = status; in set_mem_access() 66 switch(MI->csh->mode) { in printopaquemem() 272 if (MI->csh->detail) { in printSrcIdx() 288 if (MI->csh->detail) { in printSrcIdx() 306 if (MI->csh->detail) { in printDstIdx() 317 if (MI->csh->mode != CS_MODE_64) { in printDstIdx() 319 if (MI->csh->detail) { in printDstIdx() 387 if (MI->csh->detail) { in printMemOffset() 402 if (MI->csh->detail) { in printMemOffset() [all …]
|
D | X86Mapping.h | 20 const char *X86_reg_name(csh handle, unsigned int reg); 26 const char *X86_insn_name(csh handle, unsigned int id); 29 const char *X86_group_name(csh handle, unsigned int id);
|
/external/capstone/arch/AArch64/ |
D | AArch64InstPrinter.c | 50 if (MI->csh->detail != CS_OPT_ON) in set_mem_access() 53 MI->csh->doing_mem = status; in set_mem_access() 118 if (MI->csh->detail) { in AArch64_printInst() 172 if (MI->csh->detail) { in AArch64_printInst() 199 if (MI->csh->detail) { in AArch64_printInst() 227 if (MI->csh->detail) { in AArch64_printInst() 265 if (MI->csh->detail) { in AArch64_printInst() 294 if (MI->csh->detail) { in AArch64_printInst() 567 if (MI->csh->detail) { in printSysAlias() 576 if (MI->csh->detail) { in printSysAlias() [all …]
|
D | AArch64Mapping.h | 10 const char *AArch64_reg_name(csh handle, unsigned int reg); 15 const char *AArch64_insn_name(csh handle, unsigned int id); 17 const char *AArch64_group_name(csh handle, unsigned int id);
|
/external/capstone/arch/SystemZ/ |
D | SystemZInstPrinter.c | 34 void SystemZ_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci) in SystemZ_post_printer() 62 if (MI->csh->detail) { in printAddress() 70 if (MI->csh->detail) { in printAddress() 87 if (MI->csh->detail) { in _printOperand() 107 if (MI->csh->detail) { in _printOperand() 131 if (MI->csh->detail) { in printU4ImmOperand() 148 if (MI->csh->detail) { in printU6ImmOperand() 172 if (MI->csh->detail) { in printS8ImmOperand() 189 if (MI->csh->detail) { in printU8ImmOperand() 213 if (MI->csh->detail) { in printS16ImmOperand() [all …]
|
D | SystemZMapping.h | 10 const char *SystemZ_reg_name(csh handle, unsigned int reg); 15 const char *SystemZ_insn_name(csh handle, unsigned int id); 17 const char *SystemZ_group_name(csh handle, unsigned int id);
|
/external/capstone/arch/PowerPC/ |
D | PPCInstPrinter.c | 46 if (MI->csh->detail != CS_OPT_ON) in set_mem_access() 49 MI->csh->doing_mem = status; in set_mem_access() 61 void PPC_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci) in PPC_post_printer() 115 if (MI->csh->detail) { in PPC_printInst() 193 if (MI->csh->detail) { in PPC_printInst() 362 if (MI->csh->detail) { in printU2ImmOperand() 379 if (MI->csh->detail) { in printU4ImmOperand() 403 if (MI->csh->detail) { in printS5ImmOperand() 419 if (MI->csh->detail) { in printU5ImmOperand() 435 if (MI->csh->detail) { in printU6ImmOperand() [all …]
|
D | PPCMapping.h | 10 const char *PPC_reg_name(csh handle, unsigned int reg); 15 const char *PPC_insn_name(csh handle, unsigned int id); 16 const char *PPC_group_name(csh handle, unsigned int id);
|
/external/capstone/cstool/ |
D | cstool.c | 9 void print_insn_detail_x86(csh ud, cs_mode mode, cs_insn *ins); 10 void print_insn_detail_arm(csh handle, cs_insn *ins); 11 void print_insn_detail_arm64(csh handle, cs_insn *ins); 12 void print_insn_detail_mips(csh handle, cs_insn *ins); 13 void print_insn_detail_ppc(csh handle, cs_insn *ins); 14 void print_insn_detail_sparc(csh handle, cs_insn *ins); 15 void print_insn_detail_sysz(csh handle, cs_insn *ins); 16 void print_insn_detail_xcore(csh handle, cs_insn *ins); 127 csh handle; in main()
|
/external/capstone/arch/Mips/ |
D | MipsMapping.h | 10 const char *Mips_reg_name(csh handle, unsigned int reg); 15 const char *Mips_insn_name(csh handle, unsigned int id); 17 const char *Mips_group_name(csh handle, unsigned int id);
|
D | MipsInstPrinter.c | 90 MI->csh->doing_mem = status; in set_mem_access() 92 if (MI->csh->detail != CS_OPT_ON) in set_mem_access() 196 if (MI->csh->detail) { in printOperand() 197 if (MI->csh->doing_mem) { in printOperand() 207 if (MI->csh->doing_mem) { in printOperand() 221 if (MI->csh->detail) in printOperand() 236 if (MI->csh->detail) { in printOperand() 261 if (MI->csh->detail) { in printUnsignedImm() 279 if (MI->csh->detail) { in printUnsignedImm8()
|
/external/capstone/ |
D | cs.c | 190 cs_err CAPSTONE_API cs_errno(csh handle) in cs_errno() 235 cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle) in cs_open() 280 cs_err CAPSTONE_API cs_close(csh *handle) in cs_close() 325 postprinter((csh)handle, insn, buffer, mci); in fill_insn() 390 cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value) in cs_option() 472 size_t CAPSTONE_API cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, size_t c… in cs_disasm() 526 mci.csh = handle; in cs_disasm() 680 size_t CAPSTONE_API cs_disasm_ex(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, size_… in cs_disasm_ex() 699 cs_insn * CAPSTONE_API cs_malloc(csh ud) in cs_malloc() 727 bool CAPSTONE_API cs_disasm_iter(csh ud, const uint8_t **code, size_t *size, in cs_disasm_iter() [all …]
|
D | cs_priv.h | 16 typedef void (*PostPrinter_t)(csh handle, cs_insn *, char *mnem, MCInst *mci); 18 typedef bool (*Disasm_t)(csh handle, const uint8_t *code, size_t code_len, MCInst *instr, uint16_t … 20 typedef const char *(*GetName_t)(csh handle, unsigned int id);
|