| Juan Cespedes | 1afec69 | 1997-08-23 21:31:46 +0200 | [diff] [blame] | 1 | #ifndef _LTRACE_PROCESS_H |
| 2 | #define _LTRACE_PROCESS_H |
| 3 | |
| Juan Cespedes | c40e64a | 1997-10-26 20:34:00 +0100 | [diff] [blame^] | 4 | #include "i386.h" |
| 5 | |
| Juan Cespedes | 1afec69 | 1997-08-23 21:31:46 +0200 | [diff] [blame] | 6 | /* not ready yet */ |
| 7 | #if 0 |
| 8 | struct symbols_from_filename { |
| 9 | char * filename; |
| 10 | struct library_symbol * list_of_symbols; |
| 11 | } |
| 12 | |
| 13 | struct library_symbol { |
| 14 | char * name; |
| 15 | unsigned long addr; |
| 16 | unsigned long return_addr; |
| 17 | unsigned char old_value[BREAKPOINT_LENGTH]; |
| 18 | struct library_symbol * next; |
| 19 | }; |
| Juan Cespedes | 1afec69 | 1997-08-23 21:31:46 +0200 | [diff] [blame] | 20 | #endif |
| 21 | |
| Juan Cespedes | ef04ba4 | 1997-08-22 21:55:45 +0200 | [diff] [blame] | 22 | struct process { |
| Juan Cespedes | 3268a16 | 1997-08-25 16:45:22 +0200 | [diff] [blame] | 23 | char * filename; /* from execve() (TODO) */ |
| Juan Cespedes | ef04ba4 | 1997-08-22 21:55:45 +0200 | [diff] [blame] | 24 | int pid; |
| Juan Cespedes | 3268a16 | 1997-08-25 16:45:22 +0200 | [diff] [blame] | 25 | int breakpoints_enabled; |
| Juan Cespedes | c40e64a | 1997-10-26 20:34:00 +0100 | [diff] [blame^] | 26 | int within_function; |
| 27 | struct breakpoint return_value; /* if within a function */ |
| 28 | struct proc_arch proc_arch; |
| Juan Cespedes | ef04ba4 | 1997-08-22 21:55:45 +0200 | [diff] [blame] | 29 | struct process * next; |
| 30 | }; |
| 31 | |
| 32 | extern struct process * list_of_processes; |
| 33 | |
| Juan Cespedes | c40e64a | 1997-10-26 20:34:00 +0100 | [diff] [blame^] | 34 | extern unsigned int instruction_pointer; |
| Juan Cespedes | 5e4455b | 1997-08-24 01:48:26 +0200 | [diff] [blame] | 35 | |
| Juan Cespedes | 1afec69 | 1997-08-23 21:31:46 +0200 | [diff] [blame] | 36 | int execute_process(const char * file, char * const argv[]); |
| Juan Cespedes | 3268a16 | 1997-08-25 16:45:22 +0200 | [diff] [blame] | 37 | void wait_for_child(void); |
| Juan Cespedes | 1afec69 | 1997-08-23 21:31:46 +0200 | [diff] [blame] | 38 | |
| 39 | #endif |