Rizin
unix-like reverse engineering framework and cli tools
|
#include "pyc_dis.h"
Go to the source code of this file.
Functions | |
static const char * | parse_arg (pyc_opcode_object *op, ut32 oparg, RzList *names, RzList *consts, RzList *varnames, RzList *interned_table, RzList *freevars, RzList *cellvars, RzList *opcode_arg_fmt) |
int | rz_pyc_disasm (RzAsmOp *opstruct, const ut8 *code, RzList *cobjs, RzList *interned_table, ut64 pc, pyc_opcodes *ops) |
static char * | generic_array_obj_to_string (RzList *l) |
Variables | |
static const char * | cmp_op [] = { "<", "<=", "==", "!=", ">", ">=", "in", "not in", "is", "is not", "exception match", "BAD" } |
|
static |
Definition at line 154 of file pyc_dis.c.
References e, NULL, r, rz_str_newf(), rz_strbuf_append(), rz_strbuf_free(), rz_strbuf_get(), and rz_strbuf_new().
Referenced by parse_arg().
|
static |
Definition at line 65 of file pyc_dis.c.
References arg(), cmp_op, pyc_object::data, pyc_code_object::filename, pyc_arg_fmt::formatter, generic_array_obj_to_string(), HASCOMPARE, HASCONST, HASFREE, HASJABS, HASJREL, HASLOCAL, HASNAME, HASNARGS, HASVARGS, i, pyc_code_object::name, NULL, pyc_arg_fmt::op_name, rz_list_get_n(), rz_list_length(), rz_str_new(), rz_str_newf(), pyc_object::type, TYPE_CODE_v0, TYPE_CODE_v1, TYPE_FROZENSET, TYPE_INTERNED, TYPE_LIST, TYPE_SET, TYPE_SMALL_TUPLE, TYPE_STRING, TYPE_STRINGREF, and TYPE_TUPLE.
Referenced by rz_pyc_disasm().
int rz_pyc_disasm | ( | RzAsmOp * | opstruct, |
const ut8 * | code, | ||
RzList * | cobjs, | ||
RzList * | interned_table, | ||
ut64 | pc, | ||
pyc_opcodes * | ops | ||
) |
Definition at line 11 of file pyc_dis.c.
References rz_asm_op_t::buf_asm, pyc_code_object::cellvars, pyc_code_object::consts, pyc_object::data, free(), pyc_code_object::freevars, i, pyc_code_object::names, NULL, op, ops, parse_arg(), pc, rz_strbuf_appendf(), rz_strbuf_set(), st64, and pyc_code_object::varnames.
Referenced by disassemble().
|
static |
Definition at line 7 of file pyc_dis.c.
Referenced by esil_branch_check_bit(), esil_branch_check_bit_imm(), and parse_arg().