Functions | Variables
cstool.c File Reference
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "getopt.h"
#include <capstone/capstone.h>
Include dependency graph for cstool.c:

Go to the source code of this file.

Functions

static uint8_t char_to_hexnum (char c)
 
int main (int argc, char **argv)
 
static uint8_tpreprocess (char *code, size_t *size)
 
static void print_details (csh handle, cs_arch arch, cs_mode md, cs_insn *ins)
 
void print_insn_detail_arm (csh handle, cs_insn *ins)
 
void print_insn_detail_arm64 (csh handle, cs_insn *ins)
 
void print_insn_detail_evm (csh handle, cs_insn *ins)
 
void print_insn_detail_m680x (csh handle, cs_insn *ins)
 
void print_insn_detail_m68k (csh handle, cs_insn *ins)
 
void print_insn_detail_mips (csh handle, cs_insn *ins)
 
void print_insn_detail_mos65xx (csh handle, cs_insn *ins)
 
void print_insn_detail_ppc (csh handle, cs_insn *ins)
 
void print_insn_detail_sparc (csh handle, cs_insn *ins)
 
void print_insn_detail_sysz (csh handle, cs_insn *ins)
 
void print_insn_detail_tms320c64x (csh handle, cs_insn *ins)
 
void print_insn_detail_x86 (csh ud, cs_mode mode, cs_insn *ins)
 
void print_insn_detail_xcore (csh handle, cs_insn *ins)
 
void print_string_hex (const char *comment, unsigned char *str, size_t len)
 
static void usage (char *prog)
 

Variables

struct {
   cs_arch   arch
 
   cs_mode   mode
 
   const char *   name
 
all_archs []
 

Function Documentation

◆ char_to_hexnum()

static uint8_t char_to_hexnum ( char  c)
static

Definition at line 92 of file cstool.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 282 of file cstool.c.

◆ preprocess()

static uint8_t* preprocess ( char *  code,
size_t *  size 
)
static

Definition at line 108 of file cstool.c.

◆ print_details()

static void print_details ( csh  handle,
cs_arch  arch,
cs_mode  md,
cs_insn *  ins 
)
static

Definition at line 224 of file cstool.c.

◆ print_insn_detail_arm()

void print_insn_detail_arm ( csh  handle,
cs_insn *  ins 
)

Definition at line 8 of file cstool_arm.c.

◆ print_insn_detail_arm64()

void print_insn_detail_arm64 ( csh  handle,
cs_insn *  ins 
)

Definition at line 11 of file cstool_arm64.c.

◆ print_insn_detail_evm()

void print_insn_detail_evm ( csh  handle,
cs_insn *  ins 
)

Definition at line 8 of file cstool_evm.c.

◆ print_insn_detail_m680x()

void print_insn_detail_m680x ( csh  handle,
cs_insn *  ins 
)

Definition at line 45 of file cstool_m680x.c.

◆ print_insn_detail_m68k()

void print_insn_detail_m68k ( csh  handle,
cs_insn *  ins 
)

Definition at line 61 of file cstool_m68k.c.

◆ print_insn_detail_mips()

void print_insn_detail_mips ( csh  handle,
cs_insn *  ins 
)

Definition at line 11 of file cstool_mips.c.

◆ print_insn_detail_mos65xx()

void print_insn_detail_mos65xx ( csh  handle,
cs_insn *  ins 
)

Definition at line 44 of file cstool_mos65xx.c.

◆ print_insn_detail_ppc()

void print_insn_detail_ppc ( csh  handle,
cs_insn *  ins 
)

Definition at line 39 of file cstool_ppc.c.

◆ print_insn_detail_sparc()

void print_insn_detail_sparc ( csh  handle,
cs_insn *  ins 
)

Definition at line 10 of file cstool_sparc.c.

◆ print_insn_detail_sysz()

void print_insn_detail_sysz ( csh  handle,
cs_insn *  ins 
)

Definition at line 10 of file cstool_systemz.c.

◆ print_insn_detail_tms320c64x()

void print_insn_detail_tms320c64x ( csh  handle,
cs_insn *  ins 
)

Definition at line 9 of file cstool_tms320c64x.c.

◆ print_insn_detail_x86()

void print_insn_detail_x86 ( csh  ud,
cs_mode  mode,
cs_insn *  ins 
)

Definition at line 180 of file cstool_x86.c.

◆ print_insn_detail_xcore()

void print_insn_detail_xcore ( csh  handle,
cs_insn *  ins 
)

Definition at line 9 of file cstool_xcore.c.

◆ print_string_hex()

void print_string_hex ( const char *  comment,
unsigned char *  str,
size_t  len 
)

Definition at line 79 of file cstool.c.

◆ usage()

static void usage ( char *  prog)
static

Definition at line 135 of file cstool.c.

Variable Documentation

◆ all_archs

struct { ... } all_archs[]

◆ arch

cs_arch arch

Definition at line 13 of file cstool.c.

◆ mode

Definition at line 14 of file cstool.c.

◆ name

const char* name

Definition at line 12 of file cstool.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:09