This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Platform] Move common ::DebugProcess() to PlatformPOSIX
ClosedPublic

Authored by mgorny on Oct 5 2020, 2:11 PM.

Details

Summary

Move common ::DebugProcess() implementation shared by Linux and NetBSD
(and to be shared by FreeBSD shortly) into PlatformPOSIX, and move
the old base implementation used only by Darwin to PlatformDarwin.

Diff Detail

Event Timeline

mgorny created this revision.Oct 5 2020, 2:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2020, 2:11 PM
Herald added a subscriber: arichardson. · View Herald Transcript
mgorny requested review of this revision.Oct 5 2020, 2:11 PM
mgorny added a comment.Oct 5 2020, 2:13 PM

@labath, I've tested it on Linux so far. I'm currently building on NetBSD.

@JDevlieghere, could you test this on Darwin? Alternatively, it's quite simple so I can wait for buildbots to complain after pushing ;-).

labath accepted this revision.Oct 6 2020, 4:54 AM

This looks good, thanks. I don't think we need to do any special kind of testing on macos for this.

This revision is now accepted and ready to land.Oct 6 2020, 4:54 AM
This revision was landed with ongoing or failed builds.Oct 6 2020, 5:39 AM
This revision was automatically updated to reflect the committed changes.