Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
disasm.c File Reference
#include "disasm.h"
#include "target_api.h"
Include dependency graph for disasm.c:

Go to the source code of this file.

Functions

const char * disasm_get_inst_name (inst_type_t type)
 
int disasm_generic (struct target *target, unsigned char *inst_buf, unsigned int buf_len, struct array_list **idata_list_saveptr, int noabort)
 
int disasm_get_control_flow_offsets (struct target *target, inst_cf_flags_t flags, unsigned char *inst_buf, unsigned int buf_len, struct array_list **offset_list, ADDR base, int noabort)
 
int disasm_get_prologue_stack_size (struct target *target, unsigned char *inst_buf, unsigned int buf_len, int *sp)
 

Variables

char * inst_names []
 
char *const inst_type_names []
 

Function Documentation

int disasm_generic ( struct target target,
unsigned char *  inst_buf,
unsigned int  buf_len,
struct array_list **  idata_list_saveptr,
int  noabort 
)

Definition at line 47 of file disasm.c.

int disasm_get_control_flow_offsets ( struct target target,
inst_cf_flags_t  flags,
unsigned char *  inst_buf,
unsigned int  buf_len,
struct array_list **  offset_list,
ADDR  base,
int  noabort 
)

Definition at line 131 of file disasm.c.

const char* disasm_get_inst_name ( inst_type_t  type)

Definition at line 43 of file disasm.c.

int disasm_get_prologue_stack_size ( struct target target,
unsigned char *  inst_buf,
unsigned int  buf_len,
int *  sp 
)

Definition at line 409 of file disasm.c.

Variable Documentation

char* inst_names[]
Initial value:
= {
"NONE",
"RET",
"IRET",
"CALL",
"SYSCALL",
"SYSRET",
"SYSENTER",
"SYSEXIT",
"INT",
"INT3",
"INTO",
"JMP",
"JCC",
"CMOV",
}

Definition at line 26 of file disasm.c.

char* const inst_type_names[]
Initial value:
= {
[INST_NONE] = "NONE",
[INST_RET] = "RET",
[INST_IRET] = "IRET",
[INST_CALL] = "CALL",
[INST_SYSCALL] = "SYSCALL",
[INST_SYSRET] = "SYSRET",
[INST_SYSENTER] = "SYSENTER",
[INST_SYSEXIT] = "SYSEXIT",
[INST_INT] = "INT",
[INST_INT3] = "INT3",
[INST_INTO] = "INTO",
[INST_JMP] = "JMP",
[INST_JCC] = "JCC",
[INST_CMOV] = "CMOV"
}

Definition at line 641 of file disasm.c.