19 #ifndef _CORKSCREW_PTRACE_H
20 #define _CORKSCREW_PTRACE_H
22 #include <corkscrew/map_info.h>
23 #include <corkscrew/symbol_table.h>
25 #include <sys/types.h>
50 typedef struct pt_regs_x86
74 typedef struct pt_regs_mips
80 uint64_t cp0_badvaddr;
95 void init_memory_ptrace(
memory_t* memory, pid_t tid);
102 bool try_get_word(
const memory_t* memory, uintptr_t ptr, uint32_t* out_value);
108 bool try_get_word_ptrace(pid_t tid, uintptr_t ptr, uint32_t* out_value);