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 | Functions | Variables
rop_checkret.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/user.h>
#include <sys/ptrace.h>
#include <inttypes.h>
#include <signal.h>
#include <argp.h>
#include "log.h"
#include "dwdebug.h"
#include "target_api.h"
#include "target.h"
#include "probe_api.h"
#include "probe.h"
#include "alist.h"
#include "list.h"
#include "rop.h"
Include dependency graph for rop_checkret.c:

Go to the source code of this file.

Data Structures

struct  rc_argp_state
 

Functions

void cleanup_probes ()
 
void sigh_cleanup_probes (int signo, siginfo_t *siginfo, void *x)
 
result_t rop_handler (struct probe *probe, tid_t tid, void *data, struct probe *trigger, struct probe *base)
 
error_t rc_argp_parse_opt (int key, char *arg, struct argp_state *state)
 
int main (int argc, char **argv)
 

Variables

struct targettarget = NULL
 
struct targetotarget = NULL
 
GHashTable * probes = NULL
 
struct array_listrop_violation_list = NULL
 
struct rc_argp_state opts
 
struct argp_option rc_argp_opts []
 
struct argp rc_argp
 

Function Documentation

void cleanup_probes ( void  )

Definition at line 55 of file rop_checkret.c.

int main ( int  argc,
char **  argv 
)

Definition at line 312 of file rop_checkret.c.

error_t rc_argp_parse_opt ( int  key,
char *  arg,
struct argp_state *  state 
)

Definition at line 163 of file rop_checkret.c.

result_t rop_handler ( struct probe probe,
tid_t  tid,
void *  data,
struct probe trigger,
struct probe base 
)

Definition at line 81 of file rop_checkret.c.

void sigh_cleanup_probes ( int  signo,
siginfo_t *  siginfo,
void *  x 
)

Definition at line 77 of file rop_checkret.c.

Variable Documentation

struct rc_argp_state opts

Definition at line 156 of file rop_checkret.c.

struct target* otarget = NULL

Definition at line 45 of file rop_checkret.c.

GHashTable* probes = NULL

Definition at line 52 of file rop_checkret.c.

struct argp rc_argp
Initial value:
= {
rc_argp_opts,rc_argp_parse_opt,NULL,NULL,NULL,NULL,NULL,
}
struct argp_option rc_argp_opts[]
Definition: rop_checkret.c:158
error_t rc_argp_parse_opt(int key, char *arg, struct argp_state *state)
Definition: rop_checkret.c:163

Definition at line 308 of file rop_checkret.c.

struct argp_option rc_argp_opts[]
Initial value:
= {
{ "overlay",'V',"<name_or_id>:<spec_opts>",0,"Lookup name or id as an overlay target once the main target is instantiated, and try to open it. All spec_opts (normal target/dwdebug opts) then apply to the overlay target.",0 },
{ 0,0,0,0,0,0 },
}

Definition at line 158 of file rop_checkret.c.

struct array_list* rop_violation_list = NULL

Definition at line 53 of file rop_checkret.c.

struct target* target = NULL

Definition at line 44 of file rop_checkret.c.