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

Go to the source code of this file.

Data Structures

struct  regcache
 

Macros

#define REGCACHE_DIRTY   (1 << 0)
 
#define REGCACHE_VALID   (1 << 1)
 
#define REGCACHE_ALLOC   (1 << 2)
 
#define REGCACHE_PRINT_DEFAULTS   (1 << 0)
 
#define REGCACHE_PRINT_PADDING   (1 << 1)
 

Functions

struct regcacheregcache_create (struct arch *arch)
 
void regcache_destroy (struct regcache *regcache)
 
int regcache_copy_all (struct regcache *sregcache, struct regcache *dregcache)
 
int regcache_copy_dirty (struct regcache *sregcache, struct regcache *dregcache)
 
void regcache_zero (struct regcache *regcache)
 
void regcache_mark_flushed (struct regcache *regcache)
 
void regcache_invalidate (struct regcache *regcache)
 
int regcache_init_reg (struct regcache *regcache, REG reg, REGVAL regval)
 
int regcache_init_done (struct regcache *regcache)
 
int regcache_isdirty_reg_range (struct regcache *regcache, REG start, REG end)
 
int regcache_isdirty_reg (struct regcache *regcache, REG reg)
 
int regcache_isdirty (struct regcache *regcache)
 
int regcache_write_reg (struct regcache *regcache, REG reg, REGVAL regval)
 
int regcache_read_reg (struct regcache *regcache, REG reg, REGVAL *regval)
 
int regcache_read_reg_ifdirty (struct regcache *regcache, REG reg, REGVAL *regval)
 
int regcache_init_reg_len (struct regcache *regcache, REG reg, void *regdata, unsigned int reglen)
 
int regcache_write_reg_len (struct regcache *regcache, REG reg, void *regdata, unsigned int reglen)
 
int regcache_read_reg_len (struct regcache *regcache, REG reg, void **regdata, unsigned int *reglen)
 
GHashTable * regcache_copy_registers (struct regcache *regcache)
 
int regcache_snprintf (struct regcache *regcache, char *buf, int bufsiz, int detail, char *sep, char *kvsep, int flags)
 

Macro Definition Documentation

#define REGCACHE_ALLOC   (1 << 2)

Definition at line 33 of file regcache.h.

#define REGCACHE_DIRTY   (1 << 0)

Definition at line 31 of file regcache.h.

#define REGCACHE_PRINT_DEFAULTS   (1 << 0)

Definition at line 107 of file regcache.h.

#define REGCACHE_PRINT_PADDING   (1 << 1)

Definition at line 108 of file regcache.h.

#define REGCACHE_VALID   (1 << 1)

Definition at line 32 of file regcache.h.

Function Documentation

int regcache_copy_all ( struct regcache sregcache,
struct regcache dregcache 
)

Definition at line 58 of file regcache.c.

int regcache_copy_dirty ( struct regcache sregcache,
struct regcache dregcache 
)

Definition at line 75 of file regcache.c.

GHashTable* regcache_copy_registers ( struct regcache regcache)

Definition at line 422 of file regcache.c.

struct regcache* regcache_create ( struct arch arch)

Definition at line 29 of file regcache.c.

void regcache_destroy ( struct regcache regcache)

Definition at line 42 of file regcache.c.

int regcache_init_done ( struct regcache regcache)

Definition at line 189 of file regcache.c.

int regcache_init_reg ( struct regcache regcache,
REG  reg,
REGVAL  regval 
)

Definition at line 153 of file regcache.c.

int regcache_init_reg_len ( struct regcache regcache,
REG  reg,
void *  regdata,
unsigned int  reglen 
)

Definition at line 323 of file regcache.c.

void regcache_invalidate ( struct regcache regcache)

Definition at line 127 of file regcache.c.

int regcache_isdirty ( struct regcache regcache)

Definition at line 236 of file regcache.c.

int regcache_isdirty_reg ( struct regcache regcache,
REG  reg 
)

Definition at line 202 of file regcache.c.

int regcache_isdirty_reg_range ( struct regcache regcache,
REG  start,
REG  end 
)

Definition at line 212 of file regcache.c.

void regcache_mark_flushed ( struct regcache regcache)

Definition at line 118 of file regcache.c.

int regcache_read_reg ( struct regcache regcache,
REG  reg,
REGVAL regval 
)

Definition at line 271 of file regcache.c.

int regcache_read_reg_ifdirty ( struct regcache regcache,
REG  reg,
REGVAL regval 
)

Definition at line 299 of file regcache.c.

int regcache_read_reg_len ( struct regcache regcache,
REG  reg,
void **  regdata,
unsigned int *  reglen 
)

Definition at line 396 of file regcache.c.

int regcache_snprintf ( struct regcache regcache,
char *  buf,
int  bufsiz,
int  detail,
char *  sep,
char *  kvsep,
int  flags 
)

Definition at line 459 of file regcache.c.

int regcache_write_reg ( struct regcache regcache,
REG  reg,
REGVAL  regval 
)

Definition at line 240 of file regcache.c.

int regcache_write_reg_len ( struct regcache regcache,
REG  reg,
void *  regdata,
unsigned int  reglen 
)

Definition at line 359 of file regcache.c.

void regcache_zero ( struct regcache regcache)

Definition at line 101 of file regcache.c.