This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Platform/POSIX] Use gdb-remote plugin when attaching
ClosedPublic

Authored by mgorny on Dec 4 2020, 9:54 AM.

Details

Summary

Force gdb-remote plugin when attaching using the derivatives
of PlatformPOSIX class. This is consistent with the behavior
for launching processes (via DebugProcess() method) and guarantees
consistent plugin choice on FreeBSD.

Diff Detail

Event Timeline

mgorny created this revision.Dec 4 2020, 9:54 AM
mgorny requested review of this revision.Dec 4 2020, 9:54 AM

No objection here. I'm curious why the two modified tests work on Linux or NetBSD today though?

No objection here. I'm curious why the two modified tests work on Linux or NetBSD today though?

This is a debt of having 2 process plugins. NetBSD and Linux ship with a single one only.

mgorny added a comment.Dec 4 2020, 2:58 PM

No objection here. I'm curious why the two modified tests work on Linux or NetBSD today though?

What Kamil said. We're still having two plugins, while these other platforms have only a remote plugin nowadays. Nevertheless, the code here is inconsistent and it's worth fixing, even if it will make no difference long-term.

emaste accepted this revision.Dec 4 2020, 4:59 PM

Ah, of course. SGTM.

This revision is now accepted and ready to land.Dec 4 2020, 4:59 PM
labath accepted this revision.Dec 7 2020, 12:08 AM

This is consistent with the way we launch processes, so lgtm.

Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2020, 12:57 AM