diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-08-15 09:38:04 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-15 22:51:37 +0200 |
commit | c62a440d866ccd8259b408ec59a2c16069e0ce0c (patch) | |
tree | a22a7e1a71283f4cc23f6d536b34b50234289607 /proc/proc.h | |
parent | cc22fd1612ff8ff5b93575fef487e3900fadba2c (diff) |
proc: keep track of {start,end}_code
Any executable segments loaded from the ELF binary are in this range.
* proc/proc.h (struct proc): Add {start,end}_code.
* proc/mgt.h (S_proc_set_code): New function.
* proc/mgt.h (S_proc_get_code): New function.
Diffstat (limited to 'proc/proc.h')
-rw-r--r-- | proc/proc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proc/proc.h b/proc/proc.h index ed47cccb..f846b37b 100644 --- a/proc/proc.h +++ b/proc/proc.h @@ -64,6 +64,8 @@ struct proc /* Miscellaneous information */ vm_address_t p_argv, p_envp; + vm_address_t start_code; /* all executable segments are in this range */ + vm_address_t end_code; int p_status; /* to return via wait */ int p_sigcode; struct rusage p_rusage; /* my usage if I'm dead, to return via wait */ |