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

Go to the source code of this file.

Data Structures

struct  target_event
 

Macros

#define T_EVENT_IS_OS(event)
 
#define T_EVENT_IS_OS_PROCESS(event)
 
#define T_EVENT_IS_PROCESS(event)
 
#define T_EVENT_IS_SPACE(event, ttype)
 
#define T_EVENT_IS_REGION(event, ttype)
 
#define T_EVENT_IS_RANGE(event, ttype)
 

Enumerations

enum  target_event_t {
  T_EVENT_EXITED = 1, T_EVENT_EXITING, T_EVENT_ERROR, T_EVENT_OS_THREAD_CREATED,
  T_EVENT_OS_THREAD_EXITED, T_EVENT_OS_THREAD_EXITING, T_EVENT_OS_SPACE_NEW, T_EVENT_OS_SPACE_MOD,
  T_EVENT_OS_SPACE_DEL, T_EVENT_OS_REGION_NEW, T_EVENT_OS_REGION_MOD, T_EVENT_OS_REGION_DEL,
  T_EVENT_OS_RANGE_NEW, T_EVENT_OS_RANGE_MOD, T_EVENT_OS_RANGE_DEL, T_EVENT_OS_PROCESS_THREAD_CREATED,
  T_EVENT_OS_PROCESS_THREAD_EXITED, T_EVENT_OS_PROCESS_THREAD_EXITING, T_EVENT_OS_PROCESS_SPACE_NEW, T_EVENT_OS_PROCESS_SPACE_MOD,
  T_EVENT_OS_PROCESS_SPACE_DEL, T_EVENT_OS_PROCESS_REGION_NEW, T_EVENT_OS_PROCESS_REGION_MOD, T_EVENT_OS_PROCESS_REGION_DEL,
  T_EVENT_OS_PROCESS_RANGE_NEW, T_EVENT_OS_PROCESS_RANGE_MOD, T_EVENT_OS_PROCESS_RANGE_DEL, T_EVENT_PROCESS_THREAD_CREATED,
  T_EVENT_PROCESS_THREAD_EXITED, T_EVENT_PROCESS_THREAD_EXITING, T_EVENT_PROCESS_SPACE_NEW, T_EVENT_PROCESS_SPACE_MOD,
  T_EVENT_PROCESS_SPACE_DEL, T_EVENT_PROCESS_REGION_NEW, T_EVENT_PROCESS_REGION_MOD, T_EVENT_PROCESS_REGION_DEL,
  T_EVENT_PROCESS_RANGE_NEW, T_EVENT_PROCESS_RANGE_MOD, T_EVENT_PROCESS_RANGE_DEL
}
 

Functions

struct target_eventtarget_create_event (struct target *target, struct target_thread *thread, target_event_t event, void *priv)
 
struct target_eventtarget_create_event_2 (struct target *target, struct target_thread *thread, target_event_t event, void *priv, void *priv2)
 
void target_broadcast_event (struct target *target, struct target_event *event)
 

Macro Definition Documentation

#define T_EVENT_IS_OS (   event)
Value:

Definition at line 91 of file target_event.h.

#define T_EVENT_IS_OS_PROCESS (   event)
#define T_EVENT_IS_PROCESS (   event)
Value:

Definition at line 97 of file target_event.h.

#define T_EVENT_IS_RANGE (   event,
  ttype 
)
Value:
((event)->type >= T_EVENT_ ## ttype ## _RANGE_NEW \
&& (event)->type <= T_EVENT_ ## ttype ## _RANGE_DEL)
symbol_type_t type
Definition: dwdebug_priv.h:833
struct symbol * type
Definition: target_api.h:3287

Definition at line 106 of file target_event.h.

#define T_EVENT_IS_REGION (   event,
  ttype 
)
Value:
((event)->type >= T_EVENT_ ## ttype ## _REGION_NEW \
&& (event)->type <= T_EVENT_ ## ttype ## _REGION_DEL)
symbol_type_t type
Definition: dwdebug_priv.h:833
struct symbol * type
Definition: target_api.h:3287

Definition at line 103 of file target_event.h.

#define T_EVENT_IS_SPACE (   event,
  ttype 
)
Value:
((event)->type >= T_EVENT_ ## ttype ## _SPACE_NEW \
&& (event)->type <= T_EVENT_ ## ttype ## _SPACE_DEL)
symbol_type_t type
Definition: dwdebug_priv.h:833
struct symbol * type
Definition: target_api.h:3287

Definition at line 100 of file target_event.h.

Enumeration Type Documentation

Target Events.

Enumerator
T_EVENT_EXITED 
T_EVENT_EXITING 
T_EVENT_ERROR 
T_EVENT_OS_THREAD_CREATED 
T_EVENT_OS_THREAD_EXITED 
T_EVENT_OS_THREAD_EXITING 
T_EVENT_OS_SPACE_NEW 
T_EVENT_OS_SPACE_MOD 
T_EVENT_OS_SPACE_DEL 
T_EVENT_OS_REGION_NEW 
T_EVENT_OS_REGION_MOD 
T_EVENT_OS_REGION_DEL 
T_EVENT_OS_RANGE_NEW 
T_EVENT_OS_RANGE_MOD 
T_EVENT_OS_RANGE_DEL 
T_EVENT_OS_PROCESS_THREAD_CREATED 
T_EVENT_OS_PROCESS_THREAD_EXITED 
T_EVENT_OS_PROCESS_THREAD_EXITING 
T_EVENT_OS_PROCESS_SPACE_NEW 
T_EVENT_OS_PROCESS_SPACE_MOD 
T_EVENT_OS_PROCESS_SPACE_DEL 
T_EVENT_OS_PROCESS_REGION_NEW 
T_EVENT_OS_PROCESS_REGION_MOD 
T_EVENT_OS_PROCESS_REGION_DEL 
T_EVENT_OS_PROCESS_RANGE_NEW 
T_EVENT_OS_PROCESS_RANGE_MOD 
T_EVENT_OS_PROCESS_RANGE_DEL 
T_EVENT_PROCESS_THREAD_CREATED 
T_EVENT_PROCESS_THREAD_EXITED 
T_EVENT_PROCESS_THREAD_EXITING 
T_EVENT_PROCESS_SPACE_NEW 
T_EVENT_PROCESS_SPACE_MOD 
T_EVENT_PROCESS_SPACE_DEL 
T_EVENT_PROCESS_REGION_NEW 
T_EVENT_PROCESS_REGION_MOD 
T_EVENT_PROCESS_REGION_DEL 
T_EVENT_PROCESS_RANGE_NEW 
T_EVENT_PROCESS_RANGE_MOD 
T_EVENT_PROCESS_RANGE_DEL 

Definition at line 28 of file target_event.h.

Function Documentation

void target_broadcast_event ( struct target target,
struct target_event event 
)

Definition at line 56 of file target_event.c.

struct target_event* target_create_event ( struct target target,
struct target_thread thread,
target_event_t  event,
void *  priv 
)

Definition at line 26 of file target_event.c.

struct target_event* target_create_event_2 ( struct target target,
struct target_thread thread,
target_event_t  event,
void *  priv,
void *  priv2 
)

Definition at line 47 of file target_event.c.