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 Fields
target_personality_ops Struct Reference

#include <target_api.h>

Collaboration diagram for target_personality_ops:
Collaboration graph
[legend]

Data Fields

int(* snprintf )(struct target *target, char *buf, int bufsiz)
 
int(* attach )(struct target *target)
 
int(* init )(struct target *target)
 
int(* fini )(struct target *target)
 
int(* loadspaces )(struct target *target)
 
int(* loadregions )(struct target *target, struct addrspace *space)
 
int(* loaddebugfiles )(struct target *target, struct addrspace *space, struct memregion *region)
 
int(* postloadinit )(struct target *target)
 
int(* set_active_probing )(struct target *target, active_probe_flags_t flags)
 
int(* postopened )(struct target *target)
 
void(* handle_event )(struct target *target, struct target_event *event)
 
int(* obj_flags_propagate )(struct target *target, obj_flags_t orf, obj_flags_t nandf)
 
int(* handle_exception )(struct target *target, target_exception_flags_t flags)
 
unsigned char *(* read )(struct target *target, ADDR addr, unsigned long length, unsigned char *buf)
 
unsigned long(* write )(struct target *target, ADDR addr, unsigned long length, unsigned char *buf)
 
int(* addr_v2p )(struct target *target, tid_t tid, ADDR vaddr, ADDR *paddr)
 
unsigned char *(* read_phys )(struct target *target, ADDR paddr, unsigned long length, unsigned char *buf)
 
unsigned long(* write_phys )(struct target *target, ADDR paddr, unsigned long length, unsigned char *buf)
 
void(* free_thread_state )(struct target *target, void *state)
 
struct array_list *(* list_available_tids )(struct target *target)
 
struct target_thread *(* load_thread )(struct target *target, tid_t tid, int force)
 
struct target_thread *(* load_current_thread )(struct target *target, int force)
 
int(* load_available_threads )(struct target *target, int force)
 
int(* pause_thread )(struct target *target, tid_t tid, int nowait)
 
int(* flush_thread )(struct target *target, tid_t tid)
 
int(* flush_current_thread )(struct target *target)
 
int(* invalidate_thread )(struct target *target, struct target_thread *tthread)
 
int(* gc_threads )(struct target *target)
 
int(* thread_snprintf )(struct target *target, struct target_thread *tthread, char *buf, int bufsiz, int detail, char *sep, char *key_val_sep)
 
REGVAL(* readreg )(struct target *target, tid_t tid, REG reg)
 
int(* writereg )(struct target *target, tid_t tid, REG reg, REGVAL value)
 
GHashTable *(* copy_registers )(struct target *target, tid_t tid)
 
REGVAL(* readreg_tidctxt )(struct target *target, tid_t tid, thread_ctxt_t tidctxt, REG reg)
 
int(* writereg_tidctxt )(struct target *target, tid_t tid, thread_ctxt_t tidctxt, REG reg, REGVAL value)
 
struct target_location_ctxt *(* unwind )(struct target *target, tid_t tid)
 
int(* unwind_read_reg )(struct target_location_ctxt *tlctxt, REG reg, REGVAL *o_regval)
 
struct
target_location_ctxt_frame *(* 
unwind_prev )(struct target_location_ctxt *tlctxt)
 
int(* probe_register_symbol )(struct target *target, tid_t tid, struct probe *probe, struct bsymbol *bsymbol, probepoint_style_t style, probepoint_whence_t whence, probepoint_watchsize_t watchsize)
 
struct target_memmod *(* insert_sw_breakpoint )(struct target *target, tid_t tid, ADDR addr)
 
int(* remove_sw_breakpoint )(struct target *target, tid_t tid, struct target_memmod *mmod)
 
int(* enable_sw_breakpoint )(struct target *target, tid_t tid, struct target_memmod *mmod)
 
int(* disable_sw_breakpoint )(struct target *target, tid_t tid, struct target_memmod *mmod)
 
int(* change_sw_breakpoint )(struct target *target, tid_t tid, struct target_memmod *mmod, unsigned char *code, unsigned long code_len)
 
int(* unchange_sw_breakpoint )(struct target *target, tid_t tid, struct target_memmod *mmod)
 
REG(* get_unused_debug_reg )(struct target *target, tid_t tid)
 
int(* set_hw_breakpoint )(struct target *target, tid_t tid, REG reg, ADDR addr)
 
int(* set_hw_watchpoint )(struct target *target, tid_t tid, REG reg, ADDR addr, probepoint_whence_t whence, probepoint_watchsize_t watchsize)
 
int(* unset_hw_breakpoint )(struct target *target, tid_t tid, REG reg)
 
int(* unset_hw_watchpoint )(struct target *target, tid_t tid, REG reg)
 
int(* disable_hw_breakpoints )(struct target *target, tid_t tid)
 
int(* enable_hw_breakpoints )(struct target *target, tid_t tid)
 
int(* disable_hw_breakpoint )(struct target *target, tid_t tid, REG dreg)
 
int(* enable_hw_breakpoint )(struct target *target, tid_t tid, REG dreg)
 
int(* notify_sw_breakpoint )(struct target *target, ADDR addr, int notification)
 
int(* singlestep )(struct target *target, tid_t tid, int isbp, struct target *overlay)
 
int(* singlestep_end )(struct target *target, tid_t tid, struct target *overlay)
 
int(* instr_can_switch_context )(struct target *target, ADDR addr)
 
uint64_t(* get_tsc )(struct target *target)
 
uint64_t(* get_time )(struct target *target)
 
uint64_t(* get_counter )(struct target *target)
 
int(* enable_feature )(struct target *target, int feature, void *arg)
 
int(* disable_feature )(struct target *target, int feature)
 

Detailed Description

Definition at line 3137 of file target_api.h.

Field Documentation

int(* target_personality_ops::addr_v2p)(struct target *target, tid_t tid, ADDR vaddr, ADDR *paddr)

Definition at line 3168 of file target_api.h.

int(* target_personality_ops::attach)(struct target *target)

Definition at line 3140 of file target_api.h.

int(* target_personality_ops::change_sw_breakpoint)(struct target *target, tid_t tid, struct target_memmod *mmod, unsigned char *code, unsigned long code_len)

Definition at line 3222 of file target_api.h.

GHashTable*(* target_personality_ops::copy_registers)(struct target *target, tid_t tid)

Definition at line 3194 of file target_api.h.

int(* target_personality_ops::disable_feature)(struct target *target, int feature)

Definition at line 3263 of file target_api.h.

int(* target_personality_ops::disable_hw_breakpoint)(struct target *target, tid_t tid, REG dreg)

Definition at line 3236 of file target_api.h.

int(* target_personality_ops::disable_hw_breakpoints)(struct target *target, tid_t tid)

Definition at line 3234 of file target_api.h.

int(* target_personality_ops::disable_sw_breakpoint)(struct target *target, tid_t tid, struct target_memmod *mmod)

Definition at line 3220 of file target_api.h.

int(* target_personality_ops::enable_feature)(struct target *target, int feature, void *arg)

Definition at line 3262 of file target_api.h.

int(* target_personality_ops::enable_hw_breakpoint)(struct target *target, tid_t tid, REG dreg)

Definition at line 3237 of file target_api.h.

int(* target_personality_ops::enable_hw_breakpoints)(struct target *target, tid_t tid)

Definition at line 3235 of file target_api.h.

int(* target_personality_ops::enable_sw_breakpoint)(struct target *target, tid_t tid, struct target_memmod *mmod)

Definition at line 3218 of file target_api.h.

int(* target_personality_ops::fini)(struct target *target)

Definition at line 3142 of file target_api.h.

int(* target_personality_ops::flush_current_thread)(struct target *target)

Definition at line 3184 of file target_api.h.

int(* target_personality_ops::flush_thread)(struct target *target, tid_t tid)

Definition at line 3183 of file target_api.h.

void(* target_personality_ops::free_thread_state)(struct target *target, void *state)

Definition at line 3174 of file target_api.h.

int(* target_personality_ops::gc_threads)(struct target *target)

Definition at line 3186 of file target_api.h.

uint64_t(* target_personality_ops::get_counter)(struct target *target)

Definition at line 3260 of file target_api.h.

uint64_t(* target_personality_ops::get_time)(struct target *target)

Definition at line 3259 of file target_api.h.

uint64_t(* target_personality_ops::get_tsc)(struct target *target)

Definition at line 3258 of file target_api.h.

REG(* target_personality_ops::get_unused_debug_reg)(struct target *target, tid_t tid)

Definition at line 3227 of file target_api.h.

void(* target_personality_ops::handle_event)(struct target *target, struct target_event *event)

Definition at line 3157 of file target_api.h.

int(* target_personality_ops::handle_exception)(struct target *target, target_exception_flags_t flags)

Definition at line 3161 of file target_api.h.

int(* target_personality_ops::init)(struct target *target)

Definition at line 3141 of file target_api.h.

struct target_memmod*(* target_personality_ops::insert_sw_breakpoint)(struct target *target, tid_t tid, ADDR addr)

Definition at line 3214 of file target_api.h.

int(* target_personality_ops::instr_can_switch_context)(struct target *target, ADDR addr)

Definition at line 3250 of file target_api.h.

int(* target_personality_ops::invalidate_thread)(struct target *target, struct target_thread *tthread)

Definition at line 3185 of file target_api.h.

struct array_list*(* target_personality_ops::list_available_tids)(struct target *target)

Definition at line 3175 of file target_api.h.

int(* target_personality_ops::load_available_threads)(struct target *target, int force)

Definition at line 3180 of file target_api.h.

struct target_thread*(* target_personality_ops::load_current_thread)(struct target *target, int force)

Definition at line 3178 of file target_api.h.

struct target_thread*(* target_personality_ops::load_thread)(struct target *target, tid_t tid, int force)

Definition at line 3176 of file target_api.h.

int(* target_personality_ops::loaddebugfiles)(struct target *target, struct addrspace *space, struct memregion *region)

Definition at line 3147 of file target_api.h.

int(* target_personality_ops::loadregions)(struct target *target, struct addrspace *space)

Definition at line 3145 of file target_api.h.

int(* target_personality_ops::loadspaces)(struct target *target)

Definition at line 3144 of file target_api.h.

int(* target_personality_ops::notify_sw_breakpoint)(struct target *target, ADDR addr, int notification)

Definition at line 3238 of file target_api.h.

int(* target_personality_ops::obj_flags_propagate)(struct target *target, obj_flags_t orf, obj_flags_t nandf)

Definition at line 3158 of file target_api.h.

int(* target_personality_ops::pause_thread)(struct target *target, tid_t tid, int nowait)

Definition at line 3181 of file target_api.h.

int(* target_personality_ops::postloadinit)(struct target *target)

Definition at line 3151 of file target_api.h.

int(* target_personality_ops::postopened)(struct target *target)

Definition at line 3155 of file target_api.h.

int(* target_personality_ops::probe_register_symbol)(struct target *target, tid_t tid, struct probe *probe, struct bsymbol *bsymbol, probepoint_style_t style, probepoint_whence_t whence, probepoint_watchsize_t watchsize)

Definition at line 3209 of file target_api.h.

unsigned char*(* target_personality_ops::read)(struct target *target, ADDR addr, unsigned long length, unsigned char *buf)

Definition at line 3164 of file target_api.h.

unsigned char*(* target_personality_ops::read_phys)(struct target *target, ADDR paddr, unsigned long length, unsigned char *buf)

Definition at line 3169 of file target_api.h.

REGVAL(* target_personality_ops::readreg)(struct target *target, tid_t tid, REG reg)

Definition at line 3192 of file target_api.h.

REGVAL(* target_personality_ops::readreg_tidctxt)(struct target *target, tid_t tid, thread_ctxt_t tidctxt, REG reg)

Definition at line 3196 of file target_api.h.

int(* target_personality_ops::remove_sw_breakpoint)(struct target *target, tid_t tid, struct target_memmod *mmod)

Definition at line 3216 of file target_api.h.

int(* target_personality_ops::set_active_probing)(struct target *target, active_probe_flags_t flags)

Definition at line 3153 of file target_api.h.

int(* target_personality_ops::set_hw_breakpoint)(struct target *target, tid_t tid, REG reg, ADDR addr)

Definition at line 3228 of file target_api.h.

int(* target_personality_ops::set_hw_watchpoint)(struct target *target, tid_t tid, REG reg, ADDR addr, probepoint_whence_t whence, probepoint_watchsize_t watchsize)

Definition at line 3229 of file target_api.h.

int(* target_personality_ops::singlestep)(struct target *target, tid_t tid, int isbp, struct target *overlay)

Definition at line 3240 of file target_api.h.

int(* target_personality_ops::singlestep_end)(struct target *target, tid_t tid, struct target *overlay)

Definition at line 3242 of file target_api.h.

int(* target_personality_ops::snprintf)(struct target *target, char *buf, int bufsiz)

Definition at line 3138 of file target_api.h.

int(* target_personality_ops::thread_snprintf)(struct target *target, struct target_thread *tthread, char *buf, int bufsiz, int detail, char *sep, char *key_val_sep)

Definition at line 3187 of file target_api.h.

int(* target_personality_ops::unchange_sw_breakpoint)(struct target *target, tid_t tid, struct target_memmod *mmod)

Definition at line 3225 of file target_api.h.

int(* target_personality_ops::unset_hw_breakpoint)(struct target *target, tid_t tid, REG reg)

Definition at line 3232 of file target_api.h.

int(* target_personality_ops::unset_hw_watchpoint)(struct target *target, tid_t tid, REG reg)

Definition at line 3233 of file target_api.h.

struct target_location_ctxt*(* target_personality_ops::unwind)(struct target *target, tid_t tid)

Definition at line 3202 of file target_api.h.

struct target_location_ctxt_frame*(* target_personality_ops::unwind_prev)(struct target_location_ctxt *tlctxt)

Definition at line 3206 of file target_api.h.

int(* target_personality_ops::unwind_read_reg)(struct target_location_ctxt *tlctxt, REG reg, REGVAL *o_regval)

Definition at line 3203 of file target_api.h.

unsigned long(* target_personality_ops::write)(struct target *target, ADDR addr, unsigned long length, unsigned char *buf)

Definition at line 3166 of file target_api.h.

unsigned long(* target_personality_ops::write_phys)(struct target *target, ADDR paddr, unsigned long length, unsigned char *buf)

Definition at line 3171 of file target_api.h.

int(* target_personality_ops::writereg)(struct target *target, tid_t tid, REG reg, REGVAL value)

Definition at line 3193 of file target_api.h.

int(* target_personality_ops::writereg_tidctxt)(struct target *target, tid_t tid, thread_ctxt_t tidctxt, REG reg, REGVAL value)

Definition at line 3198 of file target_api.h.


The documentation for this struct was generated from the following file: