blob: 9d25bc97bad39802a37714573456e85058c27143 [file] [log] [blame]
Juan Cespedes1afec691997-08-23 21:31:46 +02001#ifndef _LTRACE_PROCESS_H
2#define _LTRACE_PROCESS_H
3
4/* not ready yet */
5#if 0
6struct symbols_from_filename {
7 char * filename;
8 struct library_symbol * list_of_symbols;
9}
10
11struct library_symbol {
12 char * name;
13 unsigned long addr;
14 unsigned long return_addr;
15 unsigned char old_value[BREAKPOINT_LENGTH];
16 struct library_symbol * next;
17};
18
19#endif
20
Juan Cespedesef04ba41997-08-22 21:55:45 +020021struct process {
Juan Cespedes1afec691997-08-23 21:31:46 +020022 char * filename; /* from execve() */
Juan Cespedesef04ba41997-08-22 21:55:45 +020023 int pid;
Juan Cespedes1afec691997-08-23 21:31:46 +020024 int syscall_number; /* outside syscall => syscall_number=-1 */
Juan Cespedesef04ba41997-08-22 21:55:45 +020025 struct process * next;
26};
27
28extern struct process * list_of_processes;
29
Juan Cespedes1afec691997-08-23 21:31:46 +020030int execute_process(const char * file, char * const argv[]);
Juan Cespedesef04ba41997-08-22 21:55:45 +020031void init_sighandler(void);
Juan Cespedes1afec691997-08-23 21:31:46 +020032
33#endif