This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Process/FreeBSD] Support SaveCore() using PT_COREDUMP
ClosedPublic

Authored by mgorny on Sep 6 2021, 7:33 AM.

Diff Detail

Event Timeline

mgorny requested review of this revision.Sep 6 2021, 7:33 AM
mgorny created this revision.
krytarowski accepted this revision.Sep 7 2021, 2:49 AM

Looks good

This revision is now accepted and ready to land.Sep 7 2021, 2:49 AM
This revision was landed with ongoing or failed builds.Sep 8 2021, 2:01 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2021, 2:01 AM
brooks added a subscriber: brooks.Oct 5 2021, 1:12 PM

This needs to be guarded by the presence of PT_COREDUMP since it's a new feature. As it stands this breaks the lldb build on all supported FreeBSD releases.

brooks added a comment.Oct 5 2021, 3:45 PM

This patch is sufficient to let things build, but doesn't address the tests. If there's a plan to MFC PT_COREDUMP that's probably an ok state of affairs. https://cgit.freebsd.org/ports/tree/devel/llvm-devel/files/patch-lldb-PT_COREDUMP.diff?id=7e2f156ce907e7785863d49cbd33d36f07df7eae

I'm sorry for the trouble. I'll take a look at it today.