Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
Go to the source code of this file.
Classes | |
struct | platform |
struct | invalid_code |
struct | invalid_instructions |
struct | valid_code |
struct | valid_instructions |
Macros | |
#define | _this_printf(...) |
#define | MAX_INVALID_CODES 16 |
#define | MAX_VALID_CODES 16 |
#define | _this_printf(...) |
Functions | |
static char * | hex_string (unsigned char *str, size_t len) |
static void | snprint_insn_detail (char *buf, size_t *cur, size_t *left, cs_insn *ins) |
static void | print_insn_detail (cs_insn *ins) |
static void | test_invalids () |
static void | test_valids () |
int | main () |
Variables | |
static csh | handle |
#define _this_printf | ( | ... | ) |
#define _this_printf | ( | ... | ) |
#define MAX_INVALID_CODES 16 |
Definition at line 148 of file test_arm_regression.c.
#define MAX_VALID_CODES 16 |
Definition at line 242 of file test_arm_regression.c.
Definition at line 27 of file test_arm_regression.c.
References i, len, malloc(), snprintf, and cmd_descs_generate::str.
Referenced by test_invalids(), and test_valids().
int main | ( | void | ) |
Definition at line 388 of file test_arm_regression.c.
References test_invalids(), and test_valids().
|
static |
Definition at line 134 of file test_arm_regression.c.
References printf(), and snprint_insn_detail().
Referenced by test_invalids().
Definition at line 47 of file test_arm_regression.c.
References _this_printf, ARM_CC_AL, ARM_CC_INVALID, ARM_OP_CIMM, ARM_OP_FP, ARM_OP_IMM, ARM_OP_MEM, ARM_OP_PIMM, ARM_OP_REG, ARM_SFT_ASR_REG, ARM_SFT_INVALID, cs_reg_name(), handle, i, NULL, and X86_REG_INVALID.
Referenced by print_insn_detail(), and test_valids().
|
static |
Definition at line 158 of file test_arm_regression.c.
References invalid_instructions::arch, invalid_code::code, invalid_code::comment, count, CS_ARCH_ARM, cs_close(), cs_disasm(), cs_free(), CS_MODE_THUMB, cs_open(), CS_OPT_DETAIL, CS_OPT_ON, CS_OPT_SYNTAX, CS_OPT_SYNTAX_NOREGNAME, cs_option(), err, free(), handle, hex_str, hex_string(), i, invalid_instructions::invalid_codes, k, invalid_instructions::mode, NULL, invalid_instructions::num_invalid_codes, invalid_instructions::platform_comment, print_insn_detail(), printf(), PRIx64, and invalid_code::size.
Referenced by main().
|
static |
Definition at line 251 of file test_arm_regression.c.
References _this_printf, valid_code::code, valid_code::comment, count, CS_ARCH_ARM, cs_close(), cs_disasm(), cs_free(), CS_MODE_THUMB, cs_open(), CS_OPT_DETAIL, CS_OPT_ON, CS_OPT_SYNTAX, CS_OPT_SYNTAX_NOREGNAME, cs_option(), err, valid_code::expected_out, handle, hex_str, hex_string(), i, k, NULL, printf(), PRIx64, valid_code::size, snprint_insn_detail(), valid_code::start_addr, and valid.
Referenced by main().
|
static |
Definition at line 16 of file test_arm_regression.c.
Referenced by snprint_insn_detail(), test_invalids(), and test_valids().