mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
Include OBJT_PHYS VM objects in ELF core dumps. In particular this
includes the shared page allowing debuggers to use the signal trampoline code to identify signal frames in core dumps. Differential Revision: https://reviews.freebsd.org/D1828 Reviewed by: alc, kib MFC after: 1 week
This commit is contained in:
parent
1b76e0b732
commit
bc411bc2d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278761
@ -1401,7 +1401,8 @@ each_writable_segment(td, func, closure)
|
||||
object = backing_object;
|
||||
}
|
||||
ignore_entry = object->type != OBJT_DEFAULT &&
|
||||
object->type != OBJT_SWAP && object->type != OBJT_VNODE;
|
||||
object->type != OBJT_SWAP && object->type != OBJT_VNODE &&
|
||||
object->type != OBJT_PHYS;
|
||||
VM_OBJECT_RUNLOCK(object);
|
||||
if (ignore_entry)
|
||||
continue;
|
||||
|
@ -511,7 +511,8 @@ readmap(pid_t pid)
|
||||
((pflags & PFLAGS_FULL) == 0 &&
|
||||
kve->kve_type != KVME_TYPE_DEFAULT &&
|
||||
kve->kve_type != KVME_TYPE_VNODE &&
|
||||
kve->kve_type != KVME_TYPE_SWAP))
|
||||
kve->kve_type != KVME_TYPE_SWAP &&
|
||||
kve->kve_type != KVME_TYPE_PHYS))
|
||||
continue;
|
||||
|
||||
ent = calloc(1, sizeof(*ent));
|
||||
|
Loading…
Reference in New Issue
Block a user