2012-02-01 02:22:43 +01:00
|
|
|
/* radare - LGPL - Copyright 2009-2012 // nibble<.ds@gmail.com> + pancake<nopcode.org> */
|
2009-02-06 18:22:27 +01:00
|
|
|
|
|
|
|
#ifndef _INCLUDE_R_ANAL_H_
|
|
|
|
#define _INCLUDE_R_ANAL_H_
|
|
|
|
|
2010-02-26 13:08:42 +01:00
|
|
|
#include <r_types.h>
|
|
|
|
#include <list.h>
|
2011-02-03 00:20:39 +01:00
|
|
|
#include <r_io.h>
|
2010-06-16 09:42:46 +02:00
|
|
|
#include <r_reg.h>
|
2010-02-26 13:08:42 +01:00
|
|
|
#include <r_list.h>
|
2010-05-24 11:15:32 +02:00
|
|
|
#include <r_util.h>
|
2011-02-02 13:05:48 +01:00
|
|
|
#include <r_syscall.h>
|
2009-02-16 00:57:03 +01:00
|
|
|
|
2011-11-15 09:56:22 +01:00
|
|
|
// TODO: save memory2 : fingerprints must be pointers to a buffer
|
|
|
|
// containing a dupped file in memory
|
|
|
|
|
|
|
|
/* save memory:
|
|
|
|
bb_has_ops=1 -> 600M
|
|
|
|
bb_has_ops=0 -> 350MB
|
|
|
|
*/
|
|
|
|
#define R_ANAL_BB_HAS_OPS 0
|
|
|
|
|
2011-09-14 02:07:06 +02:00
|
|
|
// TODO: Remove this define? /cc @nibble_ds
|
2011-02-11 11:22:43 +01:00
|
|
|
#define VERBOSE_ANAL if(0)
|
|
|
|
|
2011-03-02 00:02:50 +01:00
|
|
|
/* meta */
|
|
|
|
typedef struct r_meta_item_t {
|
|
|
|
ut64 from;
|
|
|
|
ut64 to;
|
|
|
|
ut64 size;
|
|
|
|
int type;
|
|
|
|
char *str;
|
|
|
|
} RMetaItem;
|
|
|
|
|
|
|
|
typedef struct r_meta_t {
|
|
|
|
RList *data;
|
|
|
|
PrintfCallback printf;
|
|
|
|
} RMeta;
|
|
|
|
|
|
|
|
enum {
|
|
|
|
R_META_WHERE_PREV = -1,
|
|
|
|
R_META_WHERE_HERE = 0,
|
|
|
|
R_META_WHERE_NEXT = 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
R_META_TYPE_ANY = -1,
|
|
|
|
R_META_TYPE_DATA = 'd',
|
|
|
|
R_META_TYPE_CODE = 'c',
|
|
|
|
R_META_TYPE_STRING = 's',
|
|
|
|
R_META_TYPE_FORMAT = 'f',
|
|
|
|
R_META_TYPE_MAGIC = 'm',
|
|
|
|
R_META_TYPE_COMMENT = 'C',
|
|
|
|
};
|
|
|
|
|
|
|
|
// anal
|
2009-04-02 10:23:32 +00:00
|
|
|
enum {
|
2009-10-12 17:41:52 +02:00
|
|
|
R_ANAL_OP_FAMILY_UNKNOWN = 0,
|
|
|
|
R_ANAL_OP_FAMILY_CPU, /* normal cpu insturction */
|
|
|
|
R_ANAL_OP_FAMILY_FPU, /* fpu (floating point) */
|
|
|
|
R_ANAL_OP_FAMILY_MMX, /* multimedia instruction (packed data) */
|
|
|
|
R_ANAL_OP_FAMILY_PRIV, /* priviledged instruction */
|
|
|
|
R_ANAL_OP_FAMILY_LAST
|
2009-04-02 10:23:32 +00:00
|
|
|
};
|
|
|
|
|
2009-02-06 18:22:27 +01:00
|
|
|
enum {
|
2010-09-05 21:20:56 +02:00
|
|
|
R_ANAL_OP_TYPE_NULL = 0x0,
|
|
|
|
R_ANAL_OP_TYPE_JMP = 0x1, /* mandatory jump */
|
|
|
|
R_ANAL_OP_TYPE_UJMP = 0x2, /* unknown jump (register or so) */
|
|
|
|
R_ANAL_OP_TYPE_CJMP = 0x4, /* conditional jump */
|
|
|
|
R_ANAL_OP_TYPE_CALL = 0x8, /* call to subroutine (branch+link) */
|
|
|
|
R_ANAL_OP_TYPE_UCALL = 0x10, /* unknown call (register or so) */
|
|
|
|
R_ANAL_OP_TYPE_REP = 0x20, /* repeats next instruction N times */
|
|
|
|
R_ANAL_OP_TYPE_RET = 0x40, /* returns from subrutine */
|
2010-07-02 02:01:51 +02:00
|
|
|
R_ANAL_OP_TYPE_ILL = 0x80, /* illegal instruction // trap */
|
|
|
|
R_ANAL_OP_TYPE_UNK = 0x100, /* unknown opcode type */
|
|
|
|
R_ANAL_OP_TYPE_NOP = 0x200, /* does nothing */
|
|
|
|
R_ANAL_OP_TYPE_MOV = 0x400, /* register move */
|
|
|
|
R_ANAL_OP_TYPE_TRAP = 0x800, /* it's a trap! */
|
|
|
|
R_ANAL_OP_TYPE_SWI = 0x1000, /* syscall, software interrupt */
|
2010-05-24 17:51:51 +02:00
|
|
|
R_ANAL_OP_TYPE_UPUSH = 0x2000, /* unknown push of data into stack */
|
2010-07-02 02:01:51 +02:00
|
|
|
R_ANAL_OP_TYPE_PUSH = 0x4000, /* push value into stack */
|
|
|
|
R_ANAL_OP_TYPE_POP = 0x8000, /* pop value from stack to register */
|
|
|
|
R_ANAL_OP_TYPE_CMP = 0x10000, /* copmpare something */
|
|
|
|
R_ANAL_OP_TYPE_ADD = 0x20000,
|
|
|
|
R_ANAL_OP_TYPE_SUB = 0x40000,
|
|
|
|
R_ANAL_OP_TYPE_MUL = 0x100000,
|
|
|
|
R_ANAL_OP_TYPE_DIV = 0x200000,
|
|
|
|
R_ANAL_OP_TYPE_SHR = 0x400000,
|
|
|
|
R_ANAL_OP_TYPE_SHL = 0x800000,
|
|
|
|
R_ANAL_OP_TYPE_OR = 0x1000000,
|
|
|
|
R_ANAL_OP_TYPE_AND = 0x2000000,
|
|
|
|
R_ANAL_OP_TYPE_XOR = 0x4000000,
|
|
|
|
R_ANAL_OP_TYPE_NOT = 0x8000000,
|
2010-09-05 21:20:56 +02:00
|
|
|
R_ANAL_OP_TYPE_STORE = 0x10000000, /* store from register to memory */
|
2010-05-24 17:51:51 +02:00
|
|
|
R_ANAL_OP_TYPE_LOAD = 0x20000000, /* load from memory to register */
|
2011-03-01 19:16:29 +01:00
|
|
|
R_ANAL_OP_TYPE_LEA = 0x40000000,
|
|
|
|
R_ANAL_OP_TYPE_LEAVE = 0x80000000,
|
2009-02-06 18:22:27 +01:00
|
|
|
};
|
|
|
|
|
2009-08-19 18:38:35 +02:00
|
|
|
/* TODO: what to do with signed/unsigned conditionals? */
|
|
|
|
enum {
|
2010-06-16 09:42:46 +02:00
|
|
|
R_ANAL_COND_EQ = 0,
|
|
|
|
R_ANAL_COND_NE,
|
|
|
|
R_ANAL_COND_GE,
|
|
|
|
R_ANAL_COND_GT,
|
|
|
|
R_ANAL_COND_LE,
|
|
|
|
R_ANAL_COND_LT,
|
2009-08-19 18:38:35 +02:00
|
|
|
};
|
|
|
|
|
2010-03-11 17:19:33 +01:00
|
|
|
enum {
|
2010-12-03 13:52:11 +01:00
|
|
|
R_ANAL_VAR_TYPE_NULL = 0,
|
|
|
|
R_ANAL_VAR_TYPE_GLOBAL = 0x01,
|
|
|
|
R_ANAL_VAR_TYPE_LOCAL = 0x02,
|
|
|
|
R_ANAL_VAR_TYPE_ARG = 0x04,
|
|
|
|
R_ANAL_VAR_TYPE_ARGREG = 0x08,
|
|
|
|
R_ANAL_VAR_TYPE_RET = 0x10,
|
2010-03-11 17:19:33 +01:00
|
|
|
};
|
2010-12-06 16:26:21 +01:00
|
|
|
|
2010-12-03 13:52:11 +01:00
|
|
|
typedef enum {
|
|
|
|
R_ANAL_VAR_DIR_NONE = 0,
|
|
|
|
R_ANAL_VAR_DIR_IN = 0x100,
|
|
|
|
R_ANAL_VAR_DIR_OUT = 0x200
|
|
|
|
} _RAnalVarDir;
|
2010-03-11 17:19:33 +01:00
|
|
|
|
2010-05-21 17:35:05 +02:00
|
|
|
typedef enum {
|
2009-02-06 18:22:27 +01:00
|
|
|
R_ANAL_DATA_NULL = 0,
|
|
|
|
R_ANAL_DATA_HEX, /* hex byte pairs */
|
|
|
|
R_ANAL_DATA_STR, /* ascii string */
|
|
|
|
R_ANAL_DATA_CODE, /* plain assembly code */
|
|
|
|
R_ANAL_DATA_FUN, /* plain assembly code */
|
2009-04-11 21:22:20 +00:00
|
|
|
R_ANAL_DATA_STRUCT, /* memory */
|
|
|
|
R_ANAL_DATA_LAST
|
2010-10-28 12:10:21 +02:00
|
|
|
} _RAnalData;
|
2009-02-06 18:22:27 +01:00
|
|
|
|
2010-05-21 17:35:05 +02:00
|
|
|
typedef enum {
|
2010-02-26 13:08:42 +01:00
|
|
|
R_ANAL_BB_TYPE_NULL = 0,
|
2010-05-21 19:20:42 +02:00
|
|
|
R_ANAL_BB_TYPE_HEAD = 0x1, /* first block */
|
|
|
|
R_ANAL_BB_TYPE_BODY = 0x2, /* conditional jump */
|
|
|
|
R_ANAL_BB_TYPE_LAST = 0x4, /* ret */
|
2010-11-23 17:15:33 +01:00
|
|
|
R_ANAL_BB_TYPE_FOOT = 0x8, /* unknown jump */
|
|
|
|
R_ANAL_BB_TYPE_SWITCH = 0x10 /* TODO: switch */
|
2010-10-28 12:10:21 +02:00
|
|
|
} _RAnalBlockType;
|
2009-02-06 18:22:27 +01:00
|
|
|
|
|
|
|
enum {
|
|
|
|
R_ANAL_STACK_NULL = 0,
|
2009-02-09 00:19:06 +01:00
|
|
|
R_ANAL_STACK_NOP,
|
|
|
|
R_ANAL_STACK_INCSTACK,
|
2010-05-14 23:04:10 +02:00
|
|
|
R_ANAL_STACK_GET,
|
|
|
|
R_ANAL_STACK_SET,
|
2009-02-06 18:22:27 +01:00
|
|
|
};
|
|
|
|
|
2011-06-14 04:49:10 +02:00
|
|
|
enum {
|
2010-10-28 00:55:07 +02:00
|
|
|
R_ANAL_REFLINE_TYPE_STYLE = 1,
|
|
|
|
R_ANAL_REFLINE_TYPE_WIDE = 2,
|
2011-06-14 04:49:10 +02:00
|
|
|
};
|
2009-04-02 00:41:10 +02:00
|
|
|
|
2010-03-01 16:50:37 +01:00
|
|
|
enum {
|
|
|
|
R_ANAL_RET_ERROR = -1,
|
2010-03-05 18:55:39 +01:00
|
|
|
R_ANAL_RET_DUP = -2,
|
|
|
|
R_ANAL_RET_NEW = -3,
|
|
|
|
R_ANAL_RET_END = -4
|
2010-03-01 16:50:37 +01:00
|
|
|
};
|
|
|
|
|
2010-03-19 13:51:28 +01:00
|
|
|
typedef struct r_anal_t {
|
2010-02-26 13:08:42 +01:00
|
|
|
int bits;
|
2011-10-19 10:01:01 +02:00
|
|
|
int lineswidth; // wtf
|
2010-02-26 13:08:42 +01:00
|
|
|
int big_endian;
|
2011-10-19 13:05:41 +02:00
|
|
|
int split; // used only from core
|
2010-02-26 13:08:42 +01:00
|
|
|
void *user;
|
2010-03-03 12:08:27 +01:00
|
|
|
RList *fcns;
|
2011-09-14 02:07:06 +02:00
|
|
|
RListRange *fcnstore;
|
2010-09-28 13:58:03 +02:00
|
|
|
RList *refs;
|
2010-03-11 19:52:05 +01:00
|
|
|
RList *vartypes;
|
2011-03-02 00:02:50 +01:00
|
|
|
RMeta *meta;
|
2010-09-18 02:51:17 +02:00
|
|
|
RReg *reg;
|
2011-02-02 13:05:48 +01:00
|
|
|
RSyscall *syscall;
|
2011-03-28 10:24:01 +02:00
|
|
|
struct r_anal_op_t *queued;
|
2011-10-14 10:09:53 +02:00
|
|
|
int diff_ops;
|
|
|
|
double diff_thbb;
|
|
|
|
double diff_thfcn;
|
2011-02-03 00:20:39 +01:00
|
|
|
RIOBind iob;
|
2011-10-19 10:01:01 +02:00
|
|
|
//struct r_anal_ctx_t *ctx;
|
2011-10-19 13:05:41 +02:00
|
|
|
struct r_anal_plugin_t *cur;
|
2011-02-03 09:31:50 +01:00
|
|
|
struct list_head anals; // TODO: Reimplement with RList
|
2010-03-19 12:00:04 +01:00
|
|
|
} RAnal;
|
2009-02-16 00:57:03 +01:00
|
|
|
|
2010-06-16 21:44:19 +02:00
|
|
|
// mul*value+regbase+regidx+delta
|
|
|
|
typedef struct r_anal_value_t {
|
2010-06-17 02:22:50 +02:00
|
|
|
int absolute; // if true, unsigned cast is used
|
2010-06-17 01:48:51 +02:00
|
|
|
int memref; // is memory reference? which size? 1, 2 ,4, 8
|
2010-06-16 21:44:19 +02:00
|
|
|
ut64 base ; // numeric address
|
2010-09-22 18:31:15 +02:00
|
|
|
st64 delta; // numeric delta
|
2010-09-23 13:25:46 +02:00
|
|
|
st64 imm; // immediate value
|
2010-06-16 21:44:19 +02:00
|
|
|
int mul; // multiplier (reg*4+base)
|
2010-09-22 18:31:15 +02:00
|
|
|
ut16 sel; // segment selector
|
2010-09-18 02:51:17 +02:00
|
|
|
RRegItem *reg; // register index used (-1 if no reg)
|
|
|
|
RRegItem *regdelta; // register index used (-1 if no reg)
|
2010-06-16 21:44:19 +02:00
|
|
|
} RAnalValue;
|
|
|
|
|
2011-02-24 14:06:49 +01:00
|
|
|
typedef struct r_anal_op_t {
|
2010-06-16 09:42:46 +02:00
|
|
|
char *mnemonic; /* mnemonic */
|
|
|
|
ut64 addr; /* address */
|
|
|
|
int type; /* type of opcode */
|
|
|
|
int stackop; /* operation on stack? */
|
|
|
|
int cond; /* condition type */
|
|
|
|
int length; /* length in bytes of opcode */
|
2010-06-23 17:30:16 +02:00
|
|
|
int nopcode; /* number of bytes representing the opcode (not the arguments) */
|
2010-06-16 09:42:46 +02:00
|
|
|
int family; /* family of opcode */
|
|
|
|
int eob; /* end of block (boolean) */
|
2011-03-28 10:24:01 +02:00
|
|
|
/* Run N instructions before executing the current one */
|
|
|
|
int delay; /* delay N slots (mips, ..)*/
|
2010-06-16 09:42:46 +02:00
|
|
|
ut64 jump; /* true jmp */
|
|
|
|
ut64 fail; /* false jmp */
|
2010-09-05 21:20:56 +02:00
|
|
|
ut32 selector; /* segment selector */
|
2010-06-16 09:42:46 +02:00
|
|
|
st64 ref; /* reference to memory */ /* XXX signed? */
|
|
|
|
ut64 value; /* reference to value */ /* XXX signed? */
|
|
|
|
st64 stackptr; /* stack pointer */
|
2010-06-16 21:44:19 +02:00
|
|
|
RAnalValue *src[3];
|
|
|
|
RAnalValue *dst;
|
2010-06-02 23:36:05 +02:00
|
|
|
int refptr;
|
2011-03-28 10:24:01 +02:00
|
|
|
struct r_anal_op_t *next;
|
2010-05-21 01:46:26 +02:00
|
|
|
} RAnalOp;
|
2009-02-06 18:22:27 +01:00
|
|
|
|
2010-06-16 09:42:46 +02:00
|
|
|
#define R_ANAL_COND_SINGLE(x) (!x->arg[1] || x->arg[0]==x->arg[1])
|
2010-06-14 16:20:54 +02:00
|
|
|
|
|
|
|
typedef struct r_anal_cond_t {
|
2010-06-16 09:42:46 +02:00
|
|
|
int type; // filled by CJMP opcode
|
|
|
|
RAnalValue *arg[2]; // filled by CMP opcode
|
2010-06-14 16:20:54 +02:00
|
|
|
} RAnalCond;
|
|
|
|
|
2010-12-05 08:46:56 +01:00
|
|
|
enum {
|
|
|
|
R_ANAL_DIFF_TYPE_NULL = 0,
|
|
|
|
R_ANAL_DIFF_TYPE_MATCH = 'm',
|
|
|
|
R_ANAL_DIFF_TYPE_UNMATCH = 'u'
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct r_anal_diff_t {
|
|
|
|
int type;
|
|
|
|
ut64 addr;
|
2011-10-14 10:09:53 +02:00
|
|
|
double dist;
|
2010-12-05 08:46:56 +01:00
|
|
|
char *name;
|
|
|
|
} RAnalDiff;
|
|
|
|
|
2010-02-26 13:08:42 +01:00
|
|
|
typedef struct r_anal_bb_t {
|
|
|
|
ut64 addr;
|
|
|
|
ut64 size;
|
|
|
|
ut64 jump;
|
|
|
|
ut64 fail;
|
2010-05-21 18:23:01 +02:00
|
|
|
int type;
|
2010-05-23 12:51:37 +02:00
|
|
|
int ninstr;
|
2011-02-11 11:22:43 +01:00
|
|
|
int returnbb;
|
2010-11-22 15:14:54 +01:00
|
|
|
int conditional;
|
2010-06-18 11:09:19 +02:00
|
|
|
int traced;
|
2010-12-04 15:14:53 +01:00
|
|
|
ut8 *fingerprint;
|
2010-12-05 08:46:56 +01:00
|
|
|
RAnalDiff *diff;
|
2011-11-15 09:56:22 +01:00
|
|
|
#if R_ANAL_BB_HAS_OPS
|
2011-02-24 14:06:49 +01:00
|
|
|
RList *ops;
|
2011-11-15 09:56:22 +01:00
|
|
|
#endif
|
2010-06-15 00:46:18 +02:00
|
|
|
RAnalCond *cond;
|
2010-05-21 01:46:26 +02:00
|
|
|
} RAnalBlock;
|
2009-04-01 00:32:26 +02:00
|
|
|
|
2011-01-26 21:54:39 +01:00
|
|
|
enum {
|
|
|
|
R_ANAL_CC_TYPE_CDECL,
|
|
|
|
R_ANAL_CC_TYPE_STDCALL,
|
|
|
|
R_ANAL_CC_TYPE_FASTCALL,
|
|
|
|
R_ANAL_CC_TYPE_PASCAL,
|
|
|
|
R_ANAL_CC_TYPE_MSFASTCALL, // microsoft fastcall
|
|
|
|
R_ANAL_CC_TYPE_BOFASTCALL, // borland fastcall
|
|
|
|
R_ANAL_CC_TYPE_WAFASTCALL, // wacom fastcall
|
|
|
|
R_ANAL_CC_TYPE_CLARION,
|
|
|
|
R_ANAL_CC_TYPE_SYSV,
|
|
|
|
};
|
|
|
|
|
2011-02-03 00:20:39 +01:00
|
|
|
#define R_ANAL_CC_ARGS 16
|
2011-01-26 21:54:39 +01:00
|
|
|
typedef struct r_anal_cc_t {
|
|
|
|
int type;
|
|
|
|
int bits;
|
|
|
|
int rel; // relative or absolute?
|
|
|
|
ut64 off; // offset of the call instruction (caller)
|
2011-02-02 13:05:48 +01:00
|
|
|
ut64 jump; // offset of the call instruction (caller)
|
|
|
|
int nargs;
|
2011-02-03 00:20:39 +01:00
|
|
|
ut64 args[R_ANAL_CC_ARGS];
|
2011-01-26 21:54:39 +01:00
|
|
|
// TODO: Store arguments someway
|
|
|
|
} RAnalCC;
|
|
|
|
|
|
|
|
typedef struct r_anal_cc_type_t {
|
|
|
|
int rtl; // right-to-left? if false use left-to-right
|
|
|
|
int alignstack;
|
|
|
|
//
|
|
|
|
//const char **reglist; //
|
|
|
|
} RAnalCCType;
|
2010-06-17 17:55:39 +02:00
|
|
|
|
2010-11-23 17:15:33 +01:00
|
|
|
enum {
|
|
|
|
R_ANAL_FCN_TYPE_NULL = 0,
|
2011-02-07 17:43:50 +01:00
|
|
|
R_ANAL_FCN_TYPE_FCN = 1,
|
|
|
|
R_ANAL_FCN_TYPE_LOC = 2,
|
|
|
|
R_ANAL_FCN_TYPE_SYM = 4,
|
2011-09-14 02:07:06 +02:00
|
|
|
R_ANAL_FCN_TYPE_IMP = 8,
|
|
|
|
R_ANAL_FCN_TYPE_ROOT = 16 /* matching flag */
|
2010-12-06 16:26:21 +01:00
|
|
|
};
|
2010-11-23 17:15:33 +01:00
|
|
|
|
2011-02-26 19:16:08 +01:00
|
|
|
#define R_ANAL_VARSUBS 32
|
2011-02-26 14:58:54 +01:00
|
|
|
typedef struct r_anal_varsub_t {
|
|
|
|
char pat[1024];
|
|
|
|
char sub[1024];
|
|
|
|
} RAnalVarSub;
|
2011-02-23 15:17:06 +01:00
|
|
|
|
2010-03-03 12:08:27 +01:00
|
|
|
typedef struct r_anal_fcn_t {
|
|
|
|
char *name;
|
|
|
|
ut64 addr;
|
2010-03-18 22:22:21 +01:00
|
|
|
ut64 size;
|
2010-11-23 17:15:33 +01:00
|
|
|
int type;
|
2011-01-26 21:54:39 +01:00
|
|
|
int calltype; /* See R_ANAL_CC_TYPE_ */
|
2010-05-19 02:39:01 +02:00
|
|
|
int stack;
|
2010-05-23 12:51:37 +02:00
|
|
|
int ninstr;
|
2010-12-03 13:52:11 +01:00
|
|
|
int nargs;
|
2012-02-27 02:02:44 +01:00
|
|
|
int depth;
|
2011-02-26 19:16:08 +01:00
|
|
|
RAnalVarSub varsubs[R_ANAL_VARSUBS];
|
2010-12-04 15:14:53 +01:00
|
|
|
ut8 *fingerprint;
|
2010-12-05 08:46:56 +01:00
|
|
|
RAnalDiff *diff;
|
2010-12-24 13:27:20 +01:00
|
|
|
RList *bbs;
|
2010-03-07 14:00:26 +01:00
|
|
|
RList *vars;
|
2010-03-03 12:08:27 +01:00
|
|
|
RList *refs;
|
|
|
|
RList *xrefs;
|
2010-03-19 12:00:04 +01:00
|
|
|
} RAnalFcn;
|
2010-03-03 12:08:27 +01:00
|
|
|
|
2011-09-03 05:09:31 +02:00
|
|
|
typedef struct r_anal_fcn_store_t {
|
|
|
|
RHashTable64 *h;
|
|
|
|
RList *l;
|
|
|
|
} RAnalFcnStore;
|
|
|
|
|
2010-07-02 02:01:51 +02:00
|
|
|
typedef struct r_anal_var_access_t {
|
|
|
|
ut64 addr;
|
|
|
|
int set;
|
|
|
|
} RAnalVarAccess;
|
|
|
|
|
2010-03-07 14:00:26 +01:00
|
|
|
typedef struct r_anal_var_t {
|
2010-07-12 21:37:40 +02:00
|
|
|
char *name; /* name of the variable */
|
2010-08-22 18:41:57 +02:00
|
|
|
ut64 addr; // not used correctly?
|
|
|
|
ut64 eaddr; // not used correctly?
|
2010-07-12 21:37:40 +02:00
|
|
|
int delta; /* delta offset inside stack frame */
|
2010-12-03 13:52:11 +01:00
|
|
|
int type; /* global, local... | in, out... */
|
2010-07-12 21:37:40 +02:00
|
|
|
int array; /* array size */
|
|
|
|
char *vartype; /* float, int... */
|
2010-07-02 02:01:51 +02:00
|
|
|
/* probably dupped or so */
|
|
|
|
RList/*RAnalVarAccess*/ *accesses; /* list of accesses for this var */
|
|
|
|
RList/*RAnalValue*/ *stores; /* where this */
|
2010-03-19 12:00:04 +01:00
|
|
|
} RAnalVar;
|
2010-03-11 17:19:33 +01:00
|
|
|
|
2010-03-11 19:52:05 +01:00
|
|
|
typedef struct r_anal_var_type_t {
|
|
|
|
char *name;
|
|
|
|
char *fmt;
|
2011-02-07 17:43:50 +01:00
|
|
|
ut32 size;
|
2010-03-19 12:00:04 +01:00
|
|
|
} RAnalVarType;
|
2010-03-11 17:19:33 +01:00
|
|
|
|
2011-06-14 04:49:10 +02:00
|
|
|
typedef enum {
|
2010-11-23 14:05:23 +01:00
|
|
|
R_ANAL_REF_TYPE_NULL = 0,
|
2010-07-02 02:01:51 +02:00
|
|
|
R_ANAL_REF_TYPE_CODE = 'c', // code ref
|
2010-11-23 14:05:23 +01:00
|
|
|
R_ANAL_REF_TYPE_CALL = 'C', // code ref (call)
|
2011-02-08 00:15:12 +01:00
|
|
|
R_ANAL_REF_TYPE_DATA = 'd' // mem ref
|
2010-06-14 00:57:40 +02:00
|
|
|
} RAnalRefType;
|
|
|
|
|
|
|
|
typedef struct r_anal_ref_t {
|
|
|
|
int type;
|
|
|
|
ut64 addr;
|
2010-09-28 13:58:03 +02:00
|
|
|
ut64 at;
|
2010-06-14 00:57:40 +02:00
|
|
|
} RAnalRef;
|
2009-10-12 17:41:52 +02:00
|
|
|
|
2010-02-26 13:08:42 +01:00
|
|
|
typedef struct r_anal_refline_t {
|
|
|
|
ut64 from;
|
|
|
|
ut64 to;
|
|
|
|
int index;
|
|
|
|
struct list_head list;
|
2010-03-19 12:00:04 +01:00
|
|
|
} RAnalRefline;
|
2010-02-22 04:02:13 +01:00
|
|
|
|
2011-02-24 14:06:49 +01:00
|
|
|
typedef int (*RAnalOpCallback)(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *data, int len);
|
2011-02-18 13:08:09 +01:00
|
|
|
typedef int (*RAnalRegProfCallback)(RAnal *a);
|
2011-03-06 15:21:13 +01:00
|
|
|
typedef int (*RAnalFPBBCallback)(RAnal *a, RAnalBlock *bb);
|
|
|
|
typedef int (*RAnalFPFcnCallback)(RAnal *a, RAnalFcn *fcn);
|
|
|
|
typedef int (*RAnalDiffBBCallback)(RAnal *anal, RAnalFcn *fcn, RAnalFcn *fcn2);
|
|
|
|
typedef int (*RAnalDiffFcnCallback)(RAnal *anal, RList *fcns, RList *fcns2);
|
|
|
|
typedef int (*RAnalDiffEvalCallback)(RAnal *anal);
|
2010-07-02 02:01:51 +02:00
|
|
|
|
2010-05-26 01:42:22 +02:00
|
|
|
typedef struct r_anal_plugin_t {
|
2009-02-16 02:12:02 +01:00
|
|
|
char *name;
|
|
|
|
char *desc;
|
2011-05-06 19:56:16 +02:00
|
|
|
int arch;
|
|
|
|
int bits;
|
2009-02-16 02:12:02 +01:00
|
|
|
int (*init)(void *user);
|
|
|
|
int (*fini)(void *user);
|
2011-02-24 14:06:49 +01:00
|
|
|
RAnalOpCallback op;
|
2011-02-18 13:08:09 +01:00
|
|
|
RAnalRegProfCallback set_reg_profile;
|
2011-03-06 15:21:13 +01:00
|
|
|
RAnalFPBBCallback fingerprint_bb;
|
|
|
|
RAnalFPFcnCallback fingerprint_fcn;
|
|
|
|
RAnalDiffBBCallback diff_bb;
|
|
|
|
RAnalDiffFcnCallback diff_fcn;
|
|
|
|
RAnalDiffEvalCallback diff_eval;
|
2009-02-16 02:12:02 +01:00
|
|
|
struct list_head list;
|
2010-05-26 01:42:22 +02:00
|
|
|
} RAnalPlugin;
|
2009-02-16 02:12:02 +01:00
|
|
|
|
2011-09-14 13:22:57 +02:00
|
|
|
|
|
|
|
#ifdef R_API
|
2011-09-14 02:07:06 +02:00
|
|
|
/* --------- */ /* REFACTOR */ /* ---------- */
|
|
|
|
R_API RListRange* r_listrange_new ();
|
|
|
|
R_API void r_listrange_free(RListRange *s);
|
|
|
|
R_API void r_listrange_add(RListRange *s, RAnalFcn *f);
|
|
|
|
R_API void r_listrange_del(RListRange *s, RAnalFcn *f);
|
|
|
|
R_API void r_listrange_resize(RListRange *s, RAnalFcn *f, int newsize);
|
|
|
|
R_API RAnalFcn *r_listrange_find_in_range(RListRange* s, ut64 addr);
|
|
|
|
R_API RAnalFcn *r_listrange_find_root(RListRange* s, ut64 addr);
|
|
|
|
/* --------- */ /* REFACTOR */ /* ---------- */
|
2010-03-12 03:05:20 +01:00
|
|
|
/* anal.c */
|
2010-03-19 12:00:04 +01:00
|
|
|
R_API RAnal *r_anal_new();
|
2011-11-14 00:21:25 +01:00
|
|
|
R_API void r_anal_free(RAnal *r);
|
2010-03-19 12:23:14 +01:00
|
|
|
R_API void r_anal_set_user_ptr(RAnal *anal, void *user);
|
2010-05-26 01:42:22 +02:00
|
|
|
R_API int r_anal_add(RAnal *anal, struct r_anal_plugin_t *foo);
|
2010-03-19 12:23:14 +01:00
|
|
|
R_API int r_anal_list(RAnal *anal);
|
|
|
|
R_API int r_anal_use(RAnal *anal, const char *name);
|
2011-02-18 13:08:09 +01:00
|
|
|
R_API int r_anal_set_reg_profile(RAnal *anal);
|
2010-03-19 12:23:14 +01:00
|
|
|
R_API int r_anal_set_bits(RAnal *anal, int bits);
|
|
|
|
R_API int r_anal_set_big_endian(RAnal *anal, int boolean);
|
2010-05-16 14:04:08 +02:00
|
|
|
R_API char *r_anal_strmask (RAnal *anal, const char *data);
|
2011-02-11 11:22:43 +01:00
|
|
|
R_API void r_anal_trace_bb(RAnal *anal, ut64 addr);
|
|
|
|
R_API RAnalFcn *r_anal_get_fcn_at(RAnal *anal, ut64 addr);
|
2010-03-12 03:05:20 +01:00
|
|
|
|
|
|
|
/* bb.c */
|
2010-05-21 01:46:26 +02:00
|
|
|
R_API RAnalBlock *r_anal_bb_new();
|
2010-03-12 03:05:20 +01:00
|
|
|
R_API RList *r_anal_bb_list_new();
|
2011-11-14 00:21:25 +01:00
|
|
|
R_API void r_anal_bb_free(RAnalBlock *bb);
|
2010-05-21 18:23:01 +02:00
|
|
|
R_API int r_anal_bb(RAnal *anal, RAnalBlock *bb,
|
|
|
|
ut64 addr, ut8 *buf, ut64 len, int head);
|
2011-02-28 13:07:41 +01:00
|
|
|
R_API RAnalBlock *r_anal_bb_from_offset(RAnal *anal, ut64 off);
|
2012-06-14 02:18:15 +02:00
|
|
|
R_API int r_anal_bb_is_in_offset (RAnalBlock *bb, ut64 addr);
|
2010-03-12 03:05:20 +01:00
|
|
|
|
2011-02-24 14:06:49 +01:00
|
|
|
/* op.c */
|
|
|
|
R_API RAnalOp *r_anal_op_new();
|
|
|
|
R_API void r_anal_op_free(void *op);
|
2011-11-14 00:21:25 +01:00
|
|
|
R_API void r_anal_op_fini(RAnalOp *op);
|
2011-02-24 14:06:49 +01:00
|
|
|
R_API RList *r_anal_op_list_new();
|
|
|
|
R_API int r_anal_op(RAnal *anal, RAnalOp *op, ut64 addr,
|
2010-11-23 17:15:33 +01:00
|
|
|
const ut8 *data, int len);
|
2011-02-24 14:06:49 +01:00
|
|
|
R_API char *r_anal_op_to_string(RAnal *anal, RAnalOp *op);
|
2010-03-12 03:05:20 +01:00
|
|
|
|
|
|
|
/* fcn.c */
|
2010-03-19 12:00:04 +01:00
|
|
|
R_API RAnalFcn *r_anal_fcn_new();
|
2012-06-14 02:18:15 +02:00
|
|
|
R_API int r_anal_fcn_is_in_offset (RAnalFcn *fcn, ut64 addr);
|
2010-11-23 19:55:31 +01:00
|
|
|
R_API RAnalFcn *r_anal_fcn_find(RAnal *anal, ut64 addr, int type);
|
2010-03-12 03:05:20 +01:00
|
|
|
R_API RList *r_anal_fcn_list_new();
|
2011-09-23 00:16:29 +02:00
|
|
|
R_API int r_anal_fcn_insert(RAnal *anal, RAnalFcn *fcn);
|
2010-03-12 03:05:20 +01:00
|
|
|
R_API void r_anal_fcn_free(void *fcn);
|
2010-11-23 17:15:33 +01:00
|
|
|
R_API int r_anal_fcn(RAnal *anal, RAnalFcn *fcn, ut64 addr,
|
|
|
|
ut8 *buf, ut64 len, int reftype);
|
2010-05-24 13:57:49 +02:00
|
|
|
R_API int r_anal_fcn_add(RAnal *anal, ut64 addr, ut64 size,
|
2010-12-05 08:46:56 +01:00
|
|
|
const char *name, int type, RAnalDiff *diff);
|
2010-04-07 13:43:50 +02:00
|
|
|
R_API int r_anal_fcn_del(RAnal *anal, ut64 addr);
|
2011-02-11 11:22:43 +01:00
|
|
|
R_API int r_anal_fcn_add_bb(RAnalFcn *fcn, ut64 addr, ut64 size,
|
|
|
|
ut64 jump, ut64 fail, int type, RAnalDiff *diff);
|
|
|
|
R_API int r_anal_fcn_cc(RAnalFcn *fcn);
|
|
|
|
R_API int r_anal_fcn_split_bb(RAnalFcn *fcn, RAnalBlock *bb, ut64 addr);
|
|
|
|
R_API int r_anal_fcn_overlap_bb(RAnalFcn *fcn, RAnalBlock *bb);
|
2010-07-12 21:37:40 +02:00
|
|
|
R_API RAnalVar *r_anal_fcn_get_var(RAnalFcn *fs, int num, int dir);
|
|
|
|
R_API char *r_anal_fcn_to_string(RAnal *a, RAnalFcn* fs);
|
2010-08-12 12:19:25 +02:00
|
|
|
R_API int r_anal_fcn_from_string(RAnal *a, RAnalFcn *f, const char *_str);
|
2012-06-05 17:50:12 +02:00
|
|
|
|
|
|
|
#if 0
|
2011-11-12 01:52:31 +01:00
|
|
|
#define r_anal_fcn_get_refs(x) x->refs
|
|
|
|
#define r_anal_fcn_get_xrefs(x) x->xrefs
|
|
|
|
#define r_anal_fcn_get_vars(x) x->vars
|
|
|
|
#define r_anal_fcn_get_bbs(x) x->bbs
|
2012-06-05 17:50:12 +02:00
|
|
|
#else
|
|
|
|
R_API RList* r_anal_fcn_get_refs (RAnalFcn *anal);
|
|
|
|
R_API RList* r_anal_fcn_get_xrefs (RAnalFcn *anal);
|
|
|
|
R_API RList* r_anal_fcn_get_vars (RAnalFcn *anal);
|
|
|
|
R_API RList* r_anal_fcn_get_bbs (RAnalFcn *anal);
|
2012-06-06 11:48:40 +02:00
|
|
|
R_API RList* r_anal_get_fcns (RAnal *anal);
|
2012-06-05 17:50:12 +02:00
|
|
|
#endif
|
2010-03-12 03:05:20 +01:00
|
|
|
|
|
|
|
/* ref.c */
|
2010-03-19 12:00:04 +01:00
|
|
|
R_API RAnalRef *r_anal_ref_new();
|
2010-03-12 03:05:20 +01:00
|
|
|
R_API RList *r_anal_ref_list_new();
|
|
|
|
R_API void r_anal_ref_free(void *ref);
|
2010-09-28 13:58:03 +02:00
|
|
|
R_API int r_anal_ref_add(RAnal *anal, ut64 addr, ut64 at, int type);
|
|
|
|
R_API int r_anal_ref_del(RAnal *anal, ut64 at);
|
2010-09-28 18:05:31 +02:00
|
|
|
R_API RList *r_anal_xref_get(RAnal *anal, ut64 addr);
|
2010-02-26 13:08:42 +01:00
|
|
|
|
2010-03-11 17:19:33 +01:00
|
|
|
/* var.c */
|
2010-03-19 12:00:04 +01:00
|
|
|
R_API RAnalVar *r_anal_var_new();
|
|
|
|
R_API RAnalVarType *r_anal_var_type_new();
|
|
|
|
R_API RAnalVarAccess *r_anal_var_access_new();
|
2010-03-11 19:52:05 +01:00
|
|
|
R_API RList *r_anal_var_list_new();
|
|
|
|
R_API RList *r_anal_var_type_list_new();
|
|
|
|
R_API RList *r_anal_var_access_list_new();
|
|
|
|
R_API void r_anal_var_free(void *var);
|
|
|
|
R_API void r_anal_var_type_free(void *vartype);
|
|
|
|
R_API void r_anal_var_access_free(void *access);
|
2010-03-19 12:00:04 +01:00
|
|
|
R_API int r_anal_var_type_add(RAnal *anal, const char *name, int size, const char *fmt);
|
|
|
|
R_API int r_anal_var_type_del(RAnal *anal, const char *name);
|
|
|
|
R_API RAnalVarType *r_anal_var_type_get(RAnal *anal, const char *name);
|
|
|
|
R_API int r_anal_var_add(RAnal *anal, RAnalFcn *fcn, ut64 from, int delta, int type,
|
2010-12-03 13:52:11 +01:00
|
|
|
const char *vartype, const char *name, int set);
|
2010-03-19 12:00:04 +01:00
|
|
|
R_API int r_anal_var_del(RAnal *anal, RAnalFcn *fcn, int delta, int type);
|
|
|
|
R_API RAnalVar *r_anal_var_get(RAnal *anal, RAnalFcn *fcn, int delta, int type);
|
|
|
|
R_API const char *r_anal_var_type_to_str (RAnal *anal, int type);
|
|
|
|
R_API int r_anal_var_access_add(RAnal *anal, RAnalVar *var, ut64 from, int set);
|
|
|
|
R_API int r_anal_var_access_del(RAnal *anal, RAnalVar *var, ut64 from);
|
|
|
|
R_API RAnalVarAccess *r_anal_var_access_get(RAnal *anal, RAnalVar *var, ut64 from);
|
2010-03-11 17:19:33 +01:00
|
|
|
|
2011-03-06 15:21:13 +01:00
|
|
|
#define R_ANAL_THRESHOLDFCN 0.7F
|
|
|
|
#define R_ANAL_THRESHOLDBB 0.7F
|
2011-10-14 10:09:53 +02:00
|
|
|
|
2010-12-05 08:46:56 +01:00
|
|
|
/* diff.c */
|
|
|
|
R_API RAnalDiff *r_anal_diff_new();
|
2011-10-14 10:09:53 +02:00
|
|
|
R_API void r_anal_diff_setup(RAnal *anal, int doops, double thbb, double thfcn);
|
2011-10-18 22:07:53 +02:00
|
|
|
R_API void r_anal_diff_setup_i(RAnal *anal, int doops, int thbb, int thfcn);
|
2010-12-05 08:46:56 +01:00
|
|
|
R_API void* r_anal_diff_free(RAnalDiff *diff);
|
2011-03-06 15:21:13 +01:00
|
|
|
R_API int r_anal_diff_fingerprint_bb(RAnal *anal, RAnalBlock *bb);
|
|
|
|
R_API int r_anal_diff_fingerprint_fcn(RAnal *anal, RAnalFcn *fcn);
|
|
|
|
R_API int r_anal_diff_bb(RAnal *anal, RAnalFcn *fcn, RAnalFcn *fcn2);
|
|
|
|
R_API int r_anal_diff_fcn(RAnal *anal, RList *fcns, RList *fcns2);
|
|
|
|
R_API int r_anal_diff_eval(RAnal *anal);
|
2010-12-05 08:46:56 +01:00
|
|
|
|
2011-03-06 15:21:13 +01:00
|
|
|
/* value.c */
|
2010-06-16 21:44:19 +02:00
|
|
|
R_API RAnalValue *r_anal_value_new();
|
2011-03-28 10:24:01 +02:00
|
|
|
R_API RAnalValue *r_anal_value_copy (RAnalValue *ov);
|
2010-06-16 21:44:19 +02:00
|
|
|
R_API RAnalValue *r_anal_value_new_from_string(const char *str);
|
|
|
|
R_API st64 r_anal_value_eval(RAnalValue *value);
|
|
|
|
R_API char *r_anal_value_to_string (RAnalValue *value);
|
2010-06-18 00:53:47 +02:00
|
|
|
R_API ut64 r_anal_value_to_ut64(RAnal *anal, RAnalValue *val);
|
2011-02-03 00:20:39 +01:00
|
|
|
R_API int r_anal_value_set_ut64(RAnal *anal, RAnalValue *val, ut64 num);
|
2010-06-16 21:44:19 +02:00
|
|
|
R_API void r_anal_value_free(RAnalValue *value);
|
|
|
|
|
2010-06-15 00:46:18 +02:00
|
|
|
R_API RAnalCond *r_anal_cond_new();
|
2011-02-24 14:06:49 +01:00
|
|
|
R_API RAnalCond *r_anal_cond_new_from_op(RAnalOp *op);
|
2011-11-14 00:21:25 +01:00
|
|
|
R_API void r_anal_cond_fini (RAnalCond *c);
|
|
|
|
R_API void r_anal_cond_free (RAnalCond *c);
|
2010-06-16 09:42:46 +02:00
|
|
|
R_API char *r_anal_cond_to_string(RAnalCond *cond);
|
2010-06-18 00:53:47 +02:00
|
|
|
R_API int r_anal_cond_eval (RAnal *anal, RAnalCond *cond);
|
2010-06-16 09:42:46 +02:00
|
|
|
R_API RAnalCond *r_anal_cond_new_from_string(const char *str);
|
2010-06-15 00:46:18 +02:00
|
|
|
|
2010-02-26 13:08:42 +01:00
|
|
|
/* reflines.c */
|
2010-03-19 12:23:14 +01:00
|
|
|
R_API struct r_anal_refline_t *r_anal_reflines_get(RAnal *anal,
|
2010-06-17 02:22:50 +02:00
|
|
|
ut64 addr, ut8 *buf, ut64 len, int nlines, int linesout, int linescall);
|
2010-04-08 18:29:46 +02:00
|
|
|
R_API char* r_anal_reflines_str(struct r_anal_t *anal, struct r_anal_refline_t *list,
|
|
|
|
ut64 addr, int opts);
|
2010-03-19 12:23:14 +01:00
|
|
|
R_API int r_anal_reflines_middle(RAnal *anal, RAnalRefline *list, ut64 addr, int len);
|
2010-03-10 15:15:50 +01:00
|
|
|
|
2011-02-18 10:08:24 +01:00
|
|
|
/* TODO move to r_core */
|
|
|
|
R_API void r_anal_var_list_show(RAnal *anal, RAnalFcn *fcn, ut64 addr);
|
|
|
|
R_API void r_anal_var_list(RAnal *anal, RAnalFcn *fcn, ut64 addr, int delta);
|
2010-08-22 18:41:57 +02:00
|
|
|
|
2011-02-02 13:05:48 +01:00
|
|
|
// calling conventions API
|
|
|
|
R_API RAnalCC* r_anal_cc_new ();
|
|
|
|
R_API void r_anal_cc_init (RAnalCC *cc);
|
|
|
|
R_API RAnalCC* r_anal_cc_new_from_string (const char *str, int type);
|
|
|
|
R_API void r_anal_cc_free (RAnalCC* cc);
|
|
|
|
R_API void r_anal_cc_reset (RAnalCC *cc);
|
|
|
|
R_API char *r_anal_cc_to_string (RAnal *anal, RAnalCC* cc);
|
|
|
|
R_API boolt r_anal_cc_update (RAnal *anal, RAnalCC *cc, RAnalOp *op);
|
|
|
|
//R_API int r_anal_cc_register (RAnal *anal, RAnalCC *cc);
|
|
|
|
//R_API int r_anal_cc_unregister (RAnal *anal, RAnalCC *cc);
|
|
|
|
|
2011-03-01 19:06:22 +01:00
|
|
|
R_API RMeta *r_meta_new();
|
|
|
|
R_API void r_meta_free(RMeta *m);
|
|
|
|
R_API int r_meta_count(RMeta *m, int type, ut64 from, ut64 to);
|
|
|
|
R_API char *r_meta_get_string(RMeta *m, int type, ut64 addr);
|
2011-05-21 14:27:46 +02:00
|
|
|
R_API int r_meta_set_string(RMeta *m, int type, ut64 addr, const char *s);
|
2011-03-01 19:06:22 +01:00
|
|
|
R_API int r_meta_del(RMeta *m, int type, ut64 from, ut64 size, const char *str);
|
|
|
|
R_API int r_meta_add(RMeta *m, int type, ut64 from, ut64 size, const char *str);
|
|
|
|
R_API struct r_meta_item_t *r_meta_find(RMeta *m, ut64 off, int type, int where);
|
|
|
|
R_API int r_meta_cleanup(RMeta *m, ut64 from, ut64 to);
|
|
|
|
R_API const char *r_meta_type_to_string(int type);
|
2012-02-01 02:22:43 +01:00
|
|
|
R_API int r_meta_list(RMeta *m, int type, int rad);
|
2011-03-01 19:06:22 +01:00
|
|
|
R_API void r_meta_item_free(void *_item);
|
|
|
|
R_API RMetaItem *r_meta_item_new(int type);
|
|
|
|
|
2011-09-28 02:48:03 +02:00
|
|
|
R_API int r_anal_fcn_xref_add (RAnal *anal, RAnalFcn *fcn, ut64 at, ut64 addr, int type);
|
|
|
|
R_API int r_anal_fcn_xref_del (RAnal *anal, RAnalFcn *fcn, ut64 at, ut64 addr, int type);
|
|
|
|
|
2010-03-10 15:15:50 +01:00
|
|
|
/* plugin pointers */
|
2010-05-26 01:42:22 +02:00
|
|
|
extern RAnalPlugin r_anal_plugin_csr;
|
2011-01-26 21:54:39 +01:00
|
|
|
extern RAnalPlugin r_anal_plugin_avr;
|
2010-05-26 01:42:22 +02:00
|
|
|
extern RAnalPlugin r_anal_plugin_arm;
|
|
|
|
extern RAnalPlugin r_anal_plugin_x86;
|
2010-11-20 16:47:15 +01:00
|
|
|
extern RAnalPlugin r_anal_plugin_x86_simple;
|
2010-05-26 01:42:22 +02:00
|
|
|
extern RAnalPlugin r_anal_plugin_ppc;
|
|
|
|
extern RAnalPlugin r_anal_plugin_java;
|
2010-06-23 04:02:57 +02:00
|
|
|
extern RAnalPlugin r_anal_plugin_mips;
|
2011-02-18 01:43:31 +01:00
|
|
|
extern RAnalPlugin r_anal_plugin_dalvik;
|
2011-03-29 14:55:41 +02:00
|
|
|
extern RAnalPlugin r_anal_plugin_sh;
|
2011-09-03 01:17:37 +02:00
|
|
|
extern RAnalPlugin r_anal_plugin_sparc;
|
2011-10-09 04:15:32 +02:00
|
|
|
extern RAnalPlugin r_anal_plugin_bf;
|
2012-02-02 01:06:22 +01:00
|
|
|
extern RAnalPlugin r_anal_plugin_m68k;
|
2012-02-04 03:51:22 +01:00
|
|
|
extern RAnalPlugin r_anal_plugin_z80;
|
2010-03-10 15:15:50 +01:00
|
|
|
|
2009-12-24 03:17:53 +01:00
|
|
|
#endif
|
2009-02-06 18:22:27 +01:00
|
|
|
#endif
|