Bug 256464

Summary: (llvm-12-update) lldb run fails with error: unable to locate lldb-server
Product: Base System Reporter: Jan Beich <jbeich>
Component: binAssignee: Dimitry Andric <dim>
Status: Closed FIXED    
Severity: Affects Only Me CC: emaste
Priority: --- Keywords: regression
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Jan Beich freebsd_committer freebsd_triage 2021-06-07 05:02:12 UTC
In-base lldb 12 unlike devel/llvm12 lacks server component required to debug live processes.

$ fetch -o clang12.diff https://github.com/freebsd/freebsd-src/compare/main...DimitryAndric:llvm-12-update.diff
$ git apply clang12.diff
$ make world
[...]

$ lldb ls
(lldb) target create "ls"
Current executable set to 'ls' (x86_64).
(lldb) run
error: unable to locate lldb-server

$ pkg install llvm12
$ pkg info -l llvm12 | grep 'lldb.*server'
        /usr/local/bin/lldb-server12
        /usr/local/llvm12/bin/lldb-server
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2021-06-07 19:12:56 UTC
Should now be fixed, as of https://github.com/DimitryAndric/freebsd-src/commit/f93b529f825425e6851c47641b1fa7cf5c7aa123 . Please double-check :)
Comment 2 Jan Beich freebsd_committer freebsd_triage 2021-06-07 21:02:34 UTC
Appears to work fine.