Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_egg.h>
Go to the source code of this file.
Macros | |
#define | attsyntax 0 |
#define | EMIT_NAME emit_trace |
#define | RZ_ARCH "trace" |
#define | RZ_SZ 8 |
#define | RZ_SP "sp" |
#define | RZ_BP "bp" |
#define | RZ_AX "a0" |
#define | RZ_GP { "a0", "a1", "a2", "a3", "a4" } |
#define | RZ_TMP "t0" |
#define | RZ_NGP 5 |
Functions | |
static void | emit_init (RzEgg *egg) |
static char * | emit_syscall (RzEgg *egg, int num) |
static void | emit_frame (RzEgg *egg, int sz) |
static void | emit_frame_end (RzEgg *egg, int sz, int ctx) |
static void | emit_comment (RzEgg *egg, const char *fmt,...) |
static void | emit_equ (RzEgg *egg, const char *key, const char *value) |
static void | emit_syscall_args (RzEgg *egg, int nargs) |
static void | emit_set_string (RzEgg *egg, const char *dstvar, const char *str, int j) |
static void | emit_call (RzEgg *egg, const char *str, int atr) |
static void | emit_jmp (RzEgg *egg, const char *str, int atr) |
static void | emit_arg (RzEgg *egg, int xs, int num, const char *str) |
static void | emit_get_result (RzEgg *egg, const char *ocn) |
static void | emit_restore_stack (RzEgg *egg, int size) |
static void | emit_get_while_end (RzEgg *egg, char *str, const char *ctxpush, const char *label) |
static void | emit_while_end (RzEgg *egg, const char *labelback) |
static void | emit_get_var (RzEgg *egg, int type, char *out, int idx) |
static void | emit_trap (RzEgg *egg) |
static void | emit_load_ptr (RzEgg *egg, const char *dst) |
static void | emit_branch (RzEgg *egg, char *b, char *g, char *e, char *n, int sz, const char *dst) |
static void | emit_load (RzEgg *egg, const char *dst, int sz) |
static void | emit_mathop (RzEgg *egg, int ch, int vs, int type, const char *eq, const char *p) |
static const char * | emit_regs (RzEgg *egg, int idx) |
Variables | |
static char * | regs [] = RZ_GP |
RzEggEmit | EMIT_NAME |
#define attsyntax 0 |
Definition at line 5 of file emit_trace.c.
#define EMIT_NAME emit_trace |
Definition at line 7 of file emit_trace.c.
#define RZ_ARCH "trace" |
Definition at line 8 of file emit_trace.c.
#define RZ_AX "a0" |
Definition at line 12 of file emit_trace.c.
#define RZ_BP "bp" |
Definition at line 11 of file emit_trace.c.
#define RZ_GP { "a0", "a1", "a2", "a3", "a4" } |
Definition at line 13 of file emit_trace.c.
#define RZ_NGP 5 |
Definition at line 16 of file emit_trace.c.
#define RZ_SP "sp" |
Definition at line 10 of file emit_trace.c.
#define RZ_SZ 8 |
Definition at line 9 of file emit_trace.c.
#define RZ_TMP "t0" |
Definition at line 15 of file emit_trace.c.
Definition at line 77 of file emit_trace.c.
References num, rz_egg_printf(), and cmd_descs_generate::str.
|
static |
Definition at line 116 of file emit_trace.c.
References b, dst, e, free(), g, n, NULL, p, rz_egg_mkvar(), rz_egg_printf(), and cmd_descs_generate::str.
Definition at line 61 of file emit_trace.c.
References rz_egg_printf(), and cmd_descs_generate::str.
Definition at line 48 of file emit_trace.c.
References key, rz_egg_printf(), and value.
Definition at line 31 of file emit_trace.c.
References rz_egg_printf().
Definition at line 35 of file emit_trace.c.
References rz_egg_printf().
Definition at line 82 of file emit_trace.c.
References rz_egg_printf().
|
static |
Definition at line 92 of file emit_trace.c.
References rz_egg_printf(), and cmd_descs_generate::str.
|
static |
Definition at line 21 of file emit_trace.c.
Definition at line 69 of file emit_trace.c.
References rz_egg_printf(), and cmd_descs_generate::str.
Definition at line 150 of file emit_trace.c.
References dst, and rz_egg_printf().
Definition at line 112 of file emit_trace.c.
References dst, and rz_egg_printf().
|
static |
Definition at line 154 of file emit_trace.c.
References eprintf, eq, op, p, RZ_AX, rz_egg_printf(), and type.
Definition at line 56 of file emit_trace.c.
References rz_egg_printf(), and cmd_descs_generate::str.
Definition at line 25 of file emit_trace.c.
Definition at line 52 of file emit_trace.c.
References cmd_descs_generate::nargs, and rz_egg_printf().
|
static |
Definition at line 107 of file emit_trace.c.
References rz_egg_printf().
Definition at line 96 of file emit_trace.c.
References rz_egg_printf().
RzEggEmit EMIT_NAME |
Definition at line 189 of file emit_trace.c.
|
static |
Definition at line 19 of file emit_trace.c.
Referenced by emit_regs().