Rizin
unix-like reverse engineering framework and cli tools
|
#include "opcode.h"
Go to the source code of this file.
Functions | |
bool | pyc_opcodes_equal (pyc_opcodes *op, const char *version) |
pyc_opcodes * | get_opcode_by_version (char *version) |
pyc_opcodes * | new_pyc_opcodes () |
void | free_opcode (pyc_opcodes *opcodes) |
void | add_arg_fmt (pyc_opcodes *ret, char *op_name, const char *(*formatter)(ut32 oparg)) |
void() | def_opN (struct op_parameter par) |
void() | name_opN (struct op_parameter par) |
void() | local_opN (struct op_parameter par) |
void() | free_opN (struct op_parameter par) |
void() | store_opN (struct op_parameter par) |
void() | varargs_op (struct op_parameter par) |
void() | const_opN (struct op_parameter par) |
void() | compare_op (struct op_parameter par) |
void() | jabs_opN (struct op_parameter par) |
void() | jrel_opN (struct op_parameter par) |
void() | nargs_op (struct op_parameter par) |
void() | rm_op (struct op_parameter par) |
Variables | |
static version_opcode | version_op [] |
void add_arg_fmt | ( | pyc_opcodes * | ret, |
char * | op_name, | ||
const char *(*)(ut32 oparg) | formatter | ||
) |
Definition at line 234 of file opcode.c.
References pyc_arg_fmt::formatter, pyc_arg_fmt::op_name, pyc_opcodes::opcode_arg_fmt, rz_list_append(), and RZ_NEW0.
Referenced by opcode_10(), opcode_11(), opcode_12(), opcode_13(), opcode_14(), opcode_15(), opcode_16(), opcode_20(), opcode_21(), opcode_22(), opcode_23(), opcode_24(), opcode_25(), opcode_26(), opcode_27(), opcode_30(), opcode_31(), opcode_32(), opcode_33(), opcode_34(), opcode_35(), opcode_36(), opcode_37(), opcode_38(), opcode_39(), and opcode_3x().
void() compare_op | ( | struct op_parameter | par | ) |
Definition at line 301 of file opcode.c.
References def_op, HASCOMPARE, pyc_opcode_object::op_name, and op_parameter::op_obj.
void() const_opN | ( | struct op_parameter | par | ) |
void() def_opN | ( | struct op_parameter | par | ) |
Definition at line 244 of file opcode.c.
References free(), NOFOLLOW, and strdup().
Referenced by opcode_15().
void free_opcode | ( | pyc_opcodes * | opcodes | ) |
Definition at line 217 of file opcode.c.
References free(), i, NULL, opcodes, and rz_list_free().
void() free_opN | ( | struct op_parameter | par | ) |
pyc_opcodes* get_opcode_by_version | ( | char * | version | ) |
Definition at line 169 of file opcode.c.
References NULL, version_opcode::opcode_func, version_opcode::version, and version_op.
Referenced by disassemble(), and pyc_op().
void() jabs_opN | ( | struct op_parameter | par | ) |
Definition at line 306 of file opcode.c.
References def_op00, HASCONDITION, HASJABS, pyc_opcode_object::op_name, and op_parameter::op_obj.
void() jrel_opN | ( | struct op_parameter | par | ) |
Definition at line 314 of file opcode.c.
References def_op00, HASCONDITION, HASJREL, pyc_opcode_object::op_name, and op_parameter::op_obj.
void() local_opN | ( | struct op_parameter | par | ) |
void() name_opN | ( | struct op_parameter | par | ) |
void() nargs_op | ( | struct op_parameter | par | ) |
pyc_opcodes* new_pyc_opcodes | ( | ) |
Definition at line 185 of file opcode.c.
References free(), pyc_opcodes::have_argument, i, malloc(), NULL, pyc_opcode_object::op_code, pyc_opcode_object::op_name, pyc_opcode_object::op_pop, pyc_opcode_object::op_push, pyc_opcodes::opcode_arg_fmt, pyc_opcodes::opcodes, RZ_FREE, rz_list_newf(), RZ_NEW0, rz_str_newf(), and pyc_opcode_object::type.
Referenced by opcode_15(), opcode_2x(), and opcode_3x().
bool pyc_opcodes_equal | ( | pyc_opcodes * | op, |
const char * | version | ||
) |
Definition at line 151 of file opcode.c.
References NULL, version_opcode::opcode_func, version_opcode::version, and version_op.
Referenced by disassemble(), and pyc_op().
void() rm_op | ( | struct op_parameter | par | ) |
Definition at line 327 of file opcode.c.
References free(), pyc_opcode_object::op_code, pyc_opcode_object::op_name, op_parameter::op_obj, pyc_opcode_object::op_pop, pyc_opcode_object::op_push, RZ_LOG_ERROR, rz_str_newf(), and pyc_opcode_object::type.
void() store_opN | ( | struct op_parameter | par | ) |
Definition at line 270 of file opcode.c.
References DEF_OP, def_op, FREE_OP, free_op, HASSTORE, LOCAL_OP, local_op, NAME_OP, name_op, pyc_opcode_object::op_name, op_parameter::op_obj, and RZ_LOG_ERROR.
void() varargs_op | ( | struct op_parameter | par | ) |
|
static |
Definition at line 6 of file opcode.c.
Referenced by get_opcode_by_version(), and pyc_opcodes_equal().