README revision f0bd98b3e6753d8609a3054a61f2df6f9cdac10a
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
13Event * next_event(void);
14void continue_after_breakpoint(Process * proc, Breakpoint * sbp, int delete_it);
15void continue_after_signal(pid_t pid, int signum);
16void continue_enabling_breakpoint(pid_t pid, Breakpoint * sbp);
17void continue_process(pid_t pid);
18void enable_breakpoint(pid_t pid, Breakpoint * sbp);
19void disable_breakpoint(pid_t pid, Breakpoint * sbp);
20int fork_p(int sysnum);
21int exec_p(int sysnum);
22int syscall_p(Process * proc, int status, int * sysnum);
23void * get_instruction_pointer(pid_t pid);
24void * get_stack_pointer(pid_t pid);
25void * get_return_addr(pid_t pid, void * stack_pointer);
26long gimme_arg(enum tof type, Process * proc, arg_type_info*);
27int umovestr(Process * proc, void * addr, int len, void * laddr);
28int umovelong(Process * proc, void * addr, long * result);
29char * pid2name(pid_t pid);
30void trace_me(void);
31int trace_pid(pid_t pid);
32void untrace_pid(pid_t pid);
33void linkmap_init(Process *, struct ltelf *);
34