HomePhabricator

[lldb] Initial version of FreeBSD remote process plugin

Authored by mgorny on Sep 9 2020, 11:24 PM.

Description

[lldb] Initial version of FreeBSD remote process plugin

Add a new FreeBSD Process plugin using client/server model. This plugin
is based on the one used by NetBSD. It currently supports a subset
of functionality for amd64. It is automatically used when spawning
lldb-server. It can also be used by lldb client by setting
FREEBSD_REMOTE_PLUGIN environment variable (to any value).

The code is capable of debugging simple single-threaded programs. It
supports general purpose, debug and FPU registers (up to XMM) of amd64,
basic signalling, software breakpoints.

Adding the support for the plugin involves removing some dead code
from FreeBSDPlatform plugin (that was not ever used because
CanDebugProcess() returned false), and replacing it with appropriate
code from NetBSD platform support.

Differential Revision: https://reviews.llvm.org/D88796

Details

Committed
mgornyOct 8 2020, 7:03 AM
Differential Revision
D88796: [lldb] Initial version of FreeBSD remote process plugin
Parents
rGe547b1e2431f: [mlir] Rank reducing subview conversion to LLVM
Branches
Unknown
Tags
Unknown