Created attachment 220396 [details] 0001-Add-a-section-on-remote-debugging-with-LLDB-12.0.patch Here's a patch proposing a new section on remote debugging with LLDB. This is probably to be merge *after* LLDB 12.0.0 (or equivalent) makes it into FreeBSD, llvm-project commit a8bfee2a356a2e70f854bf6d0b364798f4183795 would be the absolute minimal for reliable remote debugging IMHO.
(In reply to Michał Górny from comment #0) Thanks for the submission, it generally looks good. Do you mind posting it to https://reviews.freebsd.org/ and reference it here, so we could have more eyes on it?
Sure, here you are: https://reviews.freebsd.org/D27524
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/doc/commit/?id=192a5729e55ebddd239731df215b973d39581a29 commit 192a5729e55ebddd239731df215b973d39581a29 Author: Guangyuan Yang <ygy@FreeBSD.org> AuthorDate: 2020-12-28 16:26:55 +0000 Commit: Guangyuan Yang <ygy@FreeBSD.org> CommitDate: 2020-12-28 21:15:57 +0000 handbook: add a section on remote debugging via LLDB PR: 251709 Obtained from: Moritz Systems Submitted by: MichaŠGórny <mgorny@moritz.systems> Sponsored by: The FreeBSD Foundation Reviewed by: bcr Discussed with: dim, emaste Differential Revision: https://reviews.freebsd.org/D27524 .../books/developers-handbook/tools/chapter.xml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+)