README revision 65b53df7fa2577c4138aef86c115873eab684a0a
1Each operating system must have a subdir here, with a Makefile 2The first target of that Makefile must build a file "sysdep.o" in this 3directory. 4The "clean" target of that Makefile must undo all the efects of the 5first target, and must remove "sysdep.o" in this dir. 6 7Files "sysdep.h", "signalent.h" and "syscallent.h" must be present 8inside the directory after invoking the first target of the Makefile. 9 10----------- 11"sysdep.o" must export the following functions: 12 13void continue_after_breakpoint(struct process * proc, struct breakpoint * sbp, int delete_it); 14void continue_after_signal(pid_t pid, int signum); 15void continue_enabling_breakpoint(pid_t pid, struct breakpoint * sbp); 16void continue_process(pid_t pid); 17void enable_breakpoint(pid_t pid, struct breakpoint * sbp); 18void disable_breakpoint(pid_t pid, struct breakpoint * sbp); 19int fork_p(int sysnum); 20int exec_p(int sysnum); 21int syscall_p(struct process * proc, int status, int * sysnum); 22void * get_instruction_pointer(pid_t pid); 23void * get_stack_pointer(pid_t pid); 24void * get_return_addr(pid_t pid, void * stack_pointer); 25long gimme_arg(enum tof type, struct process * proc, arg_type_info*); 26int umovestr(struct process * proc, void * addr, int len, void * laddr); 27int umovelong(struct process * proc, void * addr, long * result); 28char * pid2name(pid_t pid); 29void trace_me(void); 30int trace_pid(pid_t pid); 31void untrace_pid(pid_t pid); 32