Lines Matching full:handle

55  * ??? It would be nice to cache this.  We would need one handle for the
59 * re-open the target handle with a different arch for the target in order
60 * to handle AArch64 vs AArch32 mode switching.
62 static cs_err cap_disas_start(disassemble_info *info, csh *handle) in cap_disas_start() argument
70 err = cs_open(info->cap_arch, cap_mode, handle); in cap_disas_start()
76 cs_option(*handle, CS_OPT_SKIPDATA, CS_OPT_ON); in cap_disas_start()
80 cs_option(*handle, CS_OPT_SKIPDATA_SETUP, in cap_disas_start()
90 cs_option(*handle, CS_OPT_SYNTAX, CS_OPT_SYNTAX_ATT); in cap_disas_start()
96 cap_insn = cs_malloc(*handle); in cap_disas_start()
98 cs_close(handle); in cap_disas_start()
181 csh handle; in cap_disas_target() local
185 if (cap_disas_start(info, &handle) != CS_ERR_OK) { in cap_disas_target()
198 while (cs_disasm_iter(handle, &cbuf, &csize, &pc, insn)) { in cap_disas_target()
233 cs_close(&handle); in cap_disas_target()
240 csh handle; in cap_disas_host() local
245 if (cap_disas_start(info, &handle) != CS_ERR_OK) { in cap_disas_host()
253 while (cs_disasm_iter(handle, &cbuf, &size, &pc, insn)) { in cap_disas_host()
262 cs_close(&handle); in cap_disas_host()
270 csh handle; in cap_disas_monitor() local
274 if (cap_disas_start(info, &handle) != CS_ERR_OK) { in cap_disas_monitor()
300 if (cs_disasm_iter(handle, &cbuf, &csize, &pc, insn)) { in cap_disas_monitor()
314 cs_close(&handle); in cap_disas_monitor()
323 csh handle; in cap_disas_plugin() local
325 if (cap_disas_start(info, &handle) != CS_ERR_OK) { in cap_disas_plugin()
332 if (cs_disasm_iter(handle, &cbuf, &size, &pc, cap_insn)) { in cap_disas_plugin()
337 cs_close(&handle); in cap_disas_plugin()