Page MenuHomeFreeBSD

Add fork tracing.
AbandonedPublic

Authored by jhb on Jun 27 2015, 2:26 PM.
Tags
None
Referenced Files
F133366823: D2927.id6511.diff
Sat, Oct 25, 5:54 AM
F133366813: D2927.id6511.diff
Sat, Oct 25, 5:54 AM
Unknown Object (File)
Fri, Oct 24, 1:39 AM
Unknown Object (File)
Thu, Oct 23, 1:48 AM
Unknown Object (File)
Sep 7 2025, 8:13 PM
Unknown Object (File)
Sep 5 2025, 4:52 AM
Unknown Object (File)
Jul 28 2025, 4:09 AM
Unknown Object (File)
Jul 23 2025, 9:02 PM

Details

Reviewers
None
Summary
  • Apply upstream patch to add fork tracing support using PT_FOLLOW_FORK. This allows child and/or parent processes to be followed after a fork and also includes support for catching fork/vfork events via 'catch'.
  • Apply upstream patch to add exec tracing support which allows exec events to be caught.
  • Enable support for 64-bit targets on 32-bit systems (e.g. allow the i386 gdb to debug an amd64 binary).
Test Plan
  • Tested poudriere builds of 10.0 i386 and amd64 and recent HEAD amd64.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

jhb retitled this revision from to Add fork tracing..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)

Backport fix from GDB mainline to remove Linuxism in MI fork following code.

Included in update to 7.10.