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
location.c File Reference
#include "target.h"
#include "dwdebug_priv.h"
Include dependency graph for location.c:

Go to the source code of this file.

Functions

int __target_location_ops_setcurrentframe (struct location_ctxt *lctxt, int frame)
 
struct symbol__target_location_ops_getsymbol (struct location_ctxt *lctxt)
 
struct debugfile__target_location_ops_getdebugfile (struct location_ctxt *lctxt)
 
int __target_location_ops_getaddrsize (struct location_ctxt *lctxt)
 
int __target_location_ops_getregno (struct location_ctxt *lctxt, common_reg_t creg, REG *o_reg)
 
int __target_location_ops_readreg (struct location_ctxt *lctxt, REG regno, REGVAL *regval)
 
int __target_location_ops_writereg (struct location_ctxt *lctxt, REG regno, REGVAL regval)
 
int __target_location_ops_cachereg (struct location_ctxt *lctxt, REG regno, REGVAL regval)
 
int __target_location_ops_readipreg (struct location_ctxt *lctxt, REGVAL *regval)
 
int __target_location_ops_readword (struct location_ctxt *lctxt, ADDR real_addr, ADDR *pval)
 
int __target_location_ops_writeword (struct location_ctxt *lctxt, ADDR real_addr, ADDR pval)
 
int __target_location_ops_relocate (struct location_ctxt *lctxt, ADDR obj_addr, ADDR *real_addr)
 
int __target_location_ops_unrelocate (struct location_ctxt *lctxt, ADDR real_addr, ADDR *obj_addr)
 

Variables

struct location_ops target_location_ops
 

Function Documentation

int __target_location_ops_cachereg ( struct location_ctxt lctxt,
REG  regno,
REGVAL  regval 
)

Definition at line 205 of file location.c.

int __target_location_ops_getaddrsize ( struct location_ctxt lctxt)

Definition at line 110 of file location.c.

struct debugfile* __target_location_ops_getdebugfile ( struct location_ctxt lctxt)

Definition at line 61 of file location.c.

int __target_location_ops_getregno ( struct location_ctxt lctxt,
common_reg_t  creg,
REG o_reg 
)

Definition at line 117 of file location.c.

struct symbol* __target_location_ops_getsymbol ( struct location_ctxt lctxt)

Definition at line 47 of file location.c.

int __target_location_ops_readipreg ( struct location_ctxt lctxt,
REGVAL regval 
)

Definition at line 240 of file location.c.

int __target_location_ops_readreg ( struct location_ctxt lctxt,
REG  regno,
REGVAL regval 
)

Definition at line 133 of file location.c.

int __target_location_ops_readword ( struct location_ctxt lctxt,
ADDR  real_addr,
ADDR pval 
)

Definition at line 249 of file location.c.

int __target_location_ops_relocate ( struct location_ctxt lctxt,
ADDR  obj_addr,
ADDR real_addr 
)

Definition at line 286 of file location.c.

int __target_location_ops_setcurrentframe ( struct location_ctxt lctxt,
int  frame 
)

The interface to the dwdebug library's lsymbol_resolve* and symbol_resolve* functions.

Definition at line 27 of file location.c.

int __target_location_ops_unrelocate ( struct location_ctxt lctxt,
ADDR  real_addr,
ADDR obj_addr 
)

Definition at line 298 of file location.c.

int __target_location_ops_writereg ( struct location_ctxt lctxt,
REG  regno,
REGVAL  regval 
)

Definition at line 184 of file location.c.

int __target_location_ops_writeword ( struct location_ctxt lctxt,
ADDR  real_addr,
ADDR  pval 
)

Definition at line 267 of file location.c.

Variable Documentation

struct location_ops target_location_ops
Initial value:
= {
}
int __target_location_ops_readword(struct location_ctxt *lctxt, ADDR real_addr, ADDR *pval)
Definition: location.c:249
int __target_location_ops_relocate(struct location_ctxt *lctxt, ADDR obj_addr, ADDR *real_addr)
Definition: location.c:286
int __target_location_ops_setcurrentframe(struct location_ctxt *lctxt, int frame)
Definition: location.c:27
int __target_location_ops_writereg(struct location_ctxt *lctxt, REG regno, REGVAL regval)
Definition: location.c:184
int __target_location_ops_writeword(struct location_ctxt *lctxt, ADDR real_addr, ADDR pval)
Definition: location.c:267
int __target_location_ops_getaddrsize(struct location_ctxt *lctxt)
Definition: location.c:110
int __target_location_ops_unrelocate(struct location_ctxt *lctxt, ADDR real_addr, ADDR *obj_addr)
Definition: location.c:298
int __target_location_ops_readreg(struct location_ctxt *lctxt, REG regno, REGVAL *regval)
Definition: location.c:133
struct symbol * __target_location_ops_getsymbol(struct location_ctxt *lctxt)
Definition: location.c:47
int __target_location_ops_cachereg(struct location_ctxt *lctxt, REG regno, REGVAL regval)
Definition: location.c:205
int __target_location_ops_getregno(struct location_ctxt *lctxt, common_reg_t creg, REG *o_reg)
Definition: location.c:117
int __target_location_ops_readipreg(struct location_ctxt *lctxt, REGVAL *regval)
Definition: location.c:240
struct debugfile * __target_location_ops_getdebugfile(struct location_ctxt *lctxt)
Definition: location.c:61

Location resolution.

Definition at line 310 of file location.c.