Page MenuHomeFreeBSD

Dump OBJT_PHYS objects in ELF core dumps.
ClosedPublic

Authored by jhb on Feb 12 2015, 5:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 5:27 PM
Unknown Object (File)
Mon, Apr 8, 1:54 PM
Unknown Object (File)
Sun, Apr 7, 11:13 PM
Unknown Object (File)
Dec 22 2023, 9:24 PM
Unknown Object (File)
Nov 21 2023, 7:35 PM
Unknown Object (File)
Nov 13 2023, 5:06 PM
Unknown Object (File)
Nov 12 2023, 9:40 AM
Unknown Object (File)
Nov 12 2023, 9:02 AM
Subscribers
None

Details

Summary

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.

Test Plan
  • Verify that a gdb patched to use a sigcode sniffer to identify signal frames works with a core generated via the kernel and one via gcore.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jhb retitled this revision from to Dump OBJT_PHYS objects in ELF core dumps..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added reviewers: kib, alc.
alc edited edge metadata.
This revision is now accepted and ready to land.Feb 12 2015, 5:17 PM
kib edited edge metadata.
kib added inline comments.
sys/kern/imgact_elf.c
1405 ↗(On Diff #3747)

Explicit listing of object types is fine.
It might be simpler to check for !OBJ_FICTITIOUS flag, and type != OBJT_DEAD.

sys/kern/imgact_elf.c
1405 ↗(On Diff #3747)

While in general I think we prefer using flags checks, we don't export the flags to userland and I'd like to keep the gcore code aligned with this (even though currently they are a bit different)

jhb updated this revision to Diff 3767.

Closed by commit rS278761 (authored by @jhb).