27 #include <sys/ptrace.h>
42 static int cleaning = 0;
67 int main(
int argc,
char **argv) {
74 struct dump_info ud = { .
stream = stdout,.prefix =
"",.detail = 0,.meta = 0 };
81 verror(
"could not parse target arguments!\n");
102 verror(
"could not instantiate target!\n");
107 fprintf(stderr,
"could not open target!\n");
117 targetstr = strdup(
"<UNNAMED_TARGET>");
119 targetstr = strdup(targetstr);
129 verror(
"could not get max number of target syscalls!\n");
133 for (i = 0; i < maxnum; ++
i) {
154 printf(
"\t\twrapped syscall:\t\t%s",
187 printf(
"%s finished.\n",targetstr);
struct target_spec * tspec
static uint64_t unsigned int i
#define v_g_slist_foreach(gslhead, gslcur, elm)
int target_resume(struct target *target)
int target_pause(struct target *target)
void symbol_type_dump(struct symbol *symbol, struct dump_info *ud)
char * bsymbol_get_name(struct bsymbol *bsymbol)
int target_close(struct target *target)
#define verror(format,...)
struct symbol * symbol_get_datatype(struct symbol *symbol)
int target_os_syscall_table_load(struct target *target)
struct bsymbol * wrapped_bsymbol
struct target_os_syscall * target_os_syscall_lookup_num(struct target *target, int num)
char * target_name(struct target *target)
int target_os_syscall_table_get_max_num(struct target *target)
int main(int argc, char **argv)
int target_finalize(struct target *target)
struct symbol * bsymbol_get_symbol(struct bsymbol *bsymbol)
GSList * symbol_get_members(struct symbol *symbol, symbol_type_flag_t flags)
int target_open(struct target *target)
struct target_spec * target_argp_driver_parse_one(struct argp *driver_parser, void *driver_state, int argc, char **argv, target_type_t target_types, int filter_quoted)
char * symbol_get_name(struct symbol *symbol)
struct target * target_instantiate(struct target_spec *spec, struct evloop *evloop)