README revision e3eb9aa37086f16c0c8c2778dcd8020a39a92564
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 insert_breakpoint(pid_t pid, struct breakpoint * sbp);
18void delete_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, int arg_num);
26int umovestr(struct process * proc, void * addr, int len, void * laddr);
27char * pid2name(pid_t pid);
28void trace_me(void);
29int trace_pid(pid_t pid);
30void untrace_pid(pid_t pid);
31