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
Data Structures | Macros | Enumerations | Functions
arch.h File Reference
#include "config.h"
#include "common.h"
#include <glib.h>
Include dependency graph for arch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  arch
 

Macros

#define COMMON_REG_COUNT   CREG_RET + 1
 
#define ARCH_SNPRINTF_DETAIL_LEVELS   3 /* 0,1,2 */
 

Enumerations

enum  endian_t { ENDIAN_BIG = 0, ENDIAN_LITTLE = 1 }
 
enum  common_reg_t {
  CREG_IP = 0, CREG_BP, CREG_SP, CREG_FLAGS,
  CREG_RET
}
 
enum  arch_type_t { ARCH_NONE = 0, ARCH_X86 = 1, ARCH_X86_64 = 2 }
 

Functions

struct archarch_get (arch_type_t at)
 
int arch_has_reg (struct arch *arch, REG reg)
 
unsigned int arch_regsize (struct arch *arch, REG reg)
 
const char * arch_regname (struct arch *arch, REG reg)
 
int arch_regno (struct arch *arch, char *name, REG *reg)
 
int arch_cregno (struct arch *arch, common_reg_t creg, REG *reg)
 

Macro Definition Documentation

#define ARCH_SNPRINTF_DETAIL_LEVELS   3 /* 0,1,2 */

Definition at line 114 of file arch.h.

#define COMMON_REG_COUNT   CREG_RET + 1

Definition at line 80 of file arch.h.

Enumeration Type Documentation

Enumerator
ARCH_NONE 
ARCH_X86 
ARCH_X86_64 

Definition at line 100 of file arch.h.

Enumerator
CREG_IP 
CREG_BP 
CREG_SP 
CREG_FLAGS 
CREG_RET 

Definition at line 73 of file arch.h.

enum endian_t
Enumerator
ENDIAN_BIG 
ENDIAN_LITTLE 

Definition at line 68 of file arch.h.

Function Documentation

int arch_cregno ( struct arch arch,
common_reg_t  creg,
REG reg 
)

Definition at line 73 of file arch.c.

struct arch* arch_get ( arch_type_t  at)

Definition at line 25 of file arch.c.

int arch_has_reg ( struct arch arch,
REG  reg 
)

Definition at line 36 of file arch.c.

const char* arch_regname ( struct arch arch,
REG  reg 
)

Definition at line 51 of file arch.c.

int arch_regno ( struct arch arch,
char *  name,
REG reg 
)

Definition at line 58 of file arch.c.

unsigned int arch_regsize ( struct arch arch,
REG  reg 
)

Definition at line 44 of file arch.c.