Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | cs_opt_mem |
struct | cs_opt_mnem |
Macros | |
#define | CAPSTONE_API |
#define | CAPSTONE_EXPORT |
#define | CAPSTONE_DEPRECATED |
#define | CS_API_MAJOR 4 |
#define | CS_API_MINOR 0 |
#define | CS_NEXT_VERSION 5 |
#define | CS_VERSION_MAJOR CS_API_MAJOR |
#define | CS_VERSION_MINOR CS_API_MINOR |
#define | CS_VERSION_EXTRA 2 |
#define | CS_MAKE_VERSION(major, minor) ((major << 8) + minor) |
#define | CS_MNEMONIC_SIZE 32 |
Maximum size of an instruction mnemonic string. More... | |
#define | CS_SUPPORT_DIET (CS_ARCH_ALL + 1) |
#define | CS_SUPPORT_X86_REDUCE (CS_ARCH_ALL + 2) |
Typedefs | |
typedef size_t | csh |
typedef enum cs_arch | cs_arch |
Architecture type. More... | |
typedef enum cs_mode | cs_mode |
Mode type. More... | |
typedef void *(CAPSTONE_API * | cs_malloc_t) (size_t size) |
typedef void *(CAPSTONE_API * | cs_calloc_t) (size_t nmemb, size_t size) |
typedef void *(CAPSTONE_API * | cs_realloc_t) (void *ptr, size_t size) |
typedef void(CAPSTONE_API * | cs_free_t) (void *ptr) |
typedef int(CAPSTONE_API * | cs_vsnprintf_t) (char *str, size_t size, const char *format, va_list ap) |
typedef struct cs_opt_mem | cs_opt_mem |
typedef struct cs_opt_mnem | cs_opt_mnem |
typedef enum cs_opt_type | cs_opt_type |
Runtime option for the disassembled engine. More... | |
typedef enum cs_opt_value | cs_opt_value |
Runtime option value (associated with option type above) More... | |
typedef enum cs_op_type | cs_op_type |
Common instruction operand types - to be consistent across all architectures. More... | |
typedef enum cs_ac_type | cs_ac_type |
typedef enum cs_group_type | cs_group_type |
Common instruction groups - to be consistent across all architectures. More... | |
#define CAPSTONE_API |
Definition at line 32 of file capstone.h.
#define CAPSTONE_DEPRECATED |
Definition at line 46 of file capstone.h.
#define CAPSTONE_EXPORT |
Definition at line 36 of file capstone.h.
#define CS_API_MAJOR 4 |
Definition at line 50 of file capstone.h.
#define CS_API_MINOR 0 |
Definition at line 51 of file capstone.h.
Macro to create combined version which can be compared to result of cs_version() API.
Definition at line 65 of file capstone.h.
#define CS_MNEMONIC_SIZE 32 |
Maximum size of an instruction mnemonic string.
Definition at line 68 of file capstone.h.
#define CS_NEXT_VERSION 5 |
Definition at line 56 of file capstone.h.
#define CS_SUPPORT_DIET (CS_ARCH_ALL + 1) |
Definition at line 94 of file capstone.h.
#define CS_SUPPORT_X86_REDUCE (CS_ARCH_ALL + 2) |
Definition at line 99 of file capstone.h.
#define CS_VERSION_EXTRA 2 |
Definition at line 61 of file capstone.h.
#define CS_VERSION_MAJOR CS_API_MAJOR |
Definition at line 59 of file capstone.h.
#define CS_VERSION_MINOR CS_API_MINOR |
Definition at line 60 of file capstone.h.
typedef enum cs_ac_type cs_ac_type |
Common instruction operand access types - to be consistent across all architectures. It is possible to combine access types, for example: CS_AC_READ | CS_AC_WRITE
typedef void*(CAPSTONE_API * cs_calloc_t) (size_t nmemb, size_t size) |
Definition at line 140 of file capstone.h.
typedef void(CAPSTONE_API * cs_free_t) (void *ptr) |
Definition at line 142 of file capstone.h.
typedef enum cs_group_type cs_group_type |
Common instruction groups - to be consistent across all architectures.
typedef void*(CAPSTONE_API * cs_malloc_t) (size_t size) |
Definition at line 139 of file capstone.h.
typedef enum cs_op_type cs_op_type |
Common instruction operand types - to be consistent across all architectures.
typedef struct cs_opt_mem cs_opt_mem |
User-defined dynamic memory related functions: malloc/calloc/realloc/free/vsnprintf() By default, Capstone uses system's malloc(), calloc(), realloc(), free() & vsnprintf().
typedef struct cs_opt_mnem cs_opt_mnem |
Customize mnemonic for instructions with alternative name. To reset existing customized instruction to its default mnemonic, call cs_option(CS_OPT_MNEMONIC) again with the same @id and NULL value for @mnemonic.
typedef enum cs_opt_type cs_opt_type |
Runtime option for the disassembled engine.
typedef enum cs_opt_value cs_opt_value |
Runtime option value (associated with option type above)
typedef void*(CAPSTONE_API * cs_realloc_t) (void *ptr, size_t size) |
Definition at line 141 of file capstone.h.
Definition at line 143 of file capstone.h.
Definition at line 71 of file capstone.h.
enum cs_ac_type |
Common instruction operand access types - to be consistent across all architectures. It is possible to combine access types, for example: CS_AC_READ | CS_AC_WRITE
Enumerator | |
---|---|
CS_AC_INVALID | Uninitialized/invalid access type. |
CS_AC_READ | Operand read from memory or register. |
CS_AC_WRITE | Operand write to memory or register. |
Definition at line 202 of file capstone.h.
enum cs_arch |
Architecture type.
Enumerator | |
---|---|
CS_ARCH_ARM | ARM architecture (including Thumb, Thumb-2) |
CS_ARCH_ARM64 | ARM-64, also called AArch64. |
CS_ARCH_MIPS | Mips architecture. |
CS_ARCH_X86 | X86 architecture (including x86 & x86-64) |
CS_ARCH_PPC | PowerPC architecture. |
CS_ARCH_SPARC | Sparc architecture. |
CS_ARCH_SYSZ | SystemZ architecture. |
CS_ARCH_XCORE | XCore architecture. |
CS_ARCH_M68K | 68K architecture |
CS_ARCH_TMS320C64X | TMS320C64x architecture. |
CS_ARCH_M680X | 680X architecture |
CS_ARCH_EVM | Ethereum architecture. |
CS_ARCH_MAX | |
CS_ARCH_ALL |
Definition at line 74 of file capstone.h.
enum cs_group_type |
Common instruction groups - to be consistent across all architectures.
Definition at line 209 of file capstone.h.
enum cs_mode |
Mode type.
Definition at line 102 of file capstone.h.
enum cs_op_type |
Common instruction operand types - to be consistent across all architectures.
Enumerator | |
---|---|
CS_OP_INVALID | uninitialized/invalid operand. |
CS_OP_REG | Register operand. |
CS_OP_IMM | Immediate operand. |
CS_OP_MEM | Memory operand. |
CS_OP_FP | Floating-Point operand. |
Definition at line 192 of file capstone.h.
enum cs_opt_type |
Runtime option for the disassembled engine.
Definition at line 168 of file capstone.h.
enum cs_opt_value |
Runtime option value (associated with option type above)
Definition at line 181 of file capstone.h.