Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/imgact_elf.c
Show First 20 Lines • Show All 1,732 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct proc *p = td->td_proc; | struct proc *p = td->td_proc; | ||||
vm_map_t map = &p->p_vmspace->vm_map; | vm_map_t map = &p->p_vmspace->vm_map; | ||||
vm_map_entry_t entry; | vm_map_entry_t entry; | ||||
vm_object_t backing_object, object; | vm_object_t backing_object, object; | ||||
boolean_t ignore_entry; | boolean_t ignore_entry; | ||||
vm_map_lock_read(map); | vm_map_lock_read(map); | ||||
for (entry = map->header.next; entry != &map->header; | VM_MAP_ENTRY_FOREACH(entry, map) { | ||||
entry = entry->next) { | |||||
/* | /* | ||||
* Don't dump inaccessible mappings, deal with legacy | * Don't dump inaccessible mappings, deal with legacy | ||||
* coredump mode. | * coredump mode. | ||||
* | * | ||||
* Note that read-only segments related to the elf binary | * Note that read-only segments related to the elf binary | ||||
* are marked MAP_ENTRY_NOCOREDUMP now so we no longer | * are marked MAP_ENTRY_NOCOREDUMP now so we no longer | ||||
* need to arbitrarily ignore such segments. | * need to arbitrarily ignore such segments. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,015 Lines • Show Last 20 Lines |